视频缩放
<SCRIPT>
var oPopup = window.createPopup();
var popTop=50;
function popmsg(msgstr){
var winstr="<table style=\"border: 1 solid #6D93C8\" width=\"250\" height=\"172\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >";
winstr+="<tr><td height=\"0\"> </td></tr><tr><td align=\"center\"><table width=\"250\" height=\"172\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
winstr+="<tr><td valign=\"top\" style=\"font-size:12px; color: #6D93C8; face: Tahoma\">"+msgstr+"</td></tr></table></td></tr></table>";
oPopup.document.body.innerHTML = winstr;
popshow();
}
function popshow(){
window.status=popTop;
if(popTop>1720){
clearTimeout(mytime);
oPopup.hide();
return;
}else if(popTop>1520&&popTop<1720){
oPopup.show(screen.width-250,screen.height,241,1720-popTop);
}else if(popTop>1500&&popTop<1520){
oPopup.show(screen.width-250,screen.height+(popTop-1720),241,172);
}else if(popTop<180){
oPopup.show(screen.width-250,screen.height,241,popTop);
}else if(popTop<220){
oPopup.show(screen.width-250,screen.height-popTop,241,172);
}
popTop+=10;
var mytime=setTimeout("popshow();",50);
}
popmsg("<embed src=\"http://player.youku.com/player.php/sid/XMjE0MzQyMTAw/v.swf\" quality=\"high\" width=\"250\" height=\"172\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\"></embed>");
</SCRIPT>
这个视频点击开始的播放几秒就缩回去了
我想要的结果是不缩回去
------解决方案--------------------
很难想像,1楼你就是靠这么多的疑问句得到了星星?
if (popTop > 1720) {
clearTimeout(mytime);
oPopup.hide();
return;
}
popTop += 10;
var mytime = setTimeout("popshow();", 50);
这样累积到了大于1720自然就隐藏了。
不知楼主到底想怎样。事情交待不清楚。简单说要不隐藏,就或者把上面的IF里面的隐藏处理去掉,或者把下面的popTop += 10;去掉。