video banner大视频,王子-潘昂
<div class="Durian_video"></div>
$(function(){ //头部视频 var width=$(document).width(); var odWidth=1920; var height=null; var odHeight=600; var n=width/odWidth; height=n*odHeight; var flvplayer = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='+width+' height='+height+'>' + '<param name="movie" value="http://edm.mcake.com/peter/Durian/video/bigbg.swf" />' + '<param name="quality" value="high" />' + '<param name="allowFullScreen" value="true" />' + '<param name="wmode" value="opaque" />' + '<param name="FlashVars" value="vcastr_file=http://edm.mcake.com/fangli.liang/ganenjie/video/bg.flv&IsAutoPlay=1&IsContinue=1" />' + '<embed src="http://edm.mcake.com/peter/Durian/video/bigbg.swf" allowfullscreen="true" flashvars="vcastr_file=http://edm.mcake.com/fangli.liang/ganenjie/video/bg.flv&IsAutoPlay=1&IsContinue=1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+width+' height='+height+' wmode="opaque" ></embed>' + '</object>'; var h5player = '<video width="100%" height="100%" autoplay="autoplay" loop="loop" >'//autoplay="autoplay" + '<source src="http://edm.mcake.com/peter/Durian/video/bigbg.mp4" type="video/mp4">' + '您的浏览器不支持此种视频格式。' + '</video>'; if (window.applicationCache) { //alert("你的浏览器支持HTML5"); /* if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ $('.Durian_video').html(flvplayer); }else{ $('.Durian_video').html(h5player); }*/ $('.Durian_video').html(h5player); } else { //alert("你的浏览器不支持HTML5"); $('.Durian_video').html(flvplayer); } })
给心灵一个纯净空间,让思想,情感,飞扬!