$(document).ready(function(){ //判断移动设备 var u = navigator.userAgent; if(u.match(/AppleWebKit.*Mobile.*/)) { $("#vcastr3").hide(); $("video,.videoPoster,.videoPlayButton").show(); } else{ $("#vcastr3").show(); $("video,.videoPoster,.videoPlayButton").hide(); } //点击播放 $(".videoPlayButton").click(function(){ $("video").attr("controls","controls")[0].play(); $(this).hide(); $(".videoPoster").hide(); }); }); var flash='
'; flash+=''; flash+=''; flash+=''; flash+='
'; //最小化,最大化 function Layer_HideOrShow(cur_div,cur_span){ var current=document.getElementById(cur_div); if(current.style.display=="none"){ current.style.display ="block"; document.getElementById(cur_span).className="closeDiv"; $(flash).prependTo(current); } else{ current.style.display ="none"; document.getElementById(cur_span).className="openDiv"; $('#videobody').empty(); } } document.write("
编辑探店视频
");$('#videobody').append($(flash));