右下角弹出flash广告的js控制问题
应用的站点是:http://www.print-rite.net.cn/
右下角弹出flash广告的js控制,代码为:
<SCRIPT>
var oPopup = window.createPopup();
var popTop=50;
function popmsg(msgstr){
var winstr="<table style=\"border: 0 solid \" width=\"360\" height=\"290\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >";
winstr+="<tr><td align=\"center\"><table width=\"360\" height=\"290\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
winstr+="<tr><td valign=\"top\" bgcolor=\"#000000\">"+msgstr+"</td></tr></table></td></tr></table>";
oPopup.document.body.innerHTML = winstr;
popshow();
}
function popshow(){
window.status=popTop;
if(popTop>3900){
clearTimeout(mytime);
oPopup.hide();
return;
}else if(popTop>2500&&popTop<2000){
oPopup.show(screen.width-250,screen.height,360,1720-popTop);
}else if(popTop>2500&&popTop<2000){
oPopup.show(screen.width-250,screen.height+(popTop-1720),360,290);
}else if(popTop<180){
oPopup.show(screen.width-250,screen.height,360,popTop);
}else if(popTop<220){
oPopup.show(screen.width-250,screen.height-popTop,360,290);
}
popTop+=10;
var mytime=setTimeout("popshow();",50);
}
popmsg(" <embed border=\"0\" src=\"shipin.swf\" width=\"352\" height=\"288\">");
</SCRIPT>
代码借鉴的新浪的代码,现在的情况是,到了3900这个时间广告就消失,而且鼠标一点广告就消失了。我想做成没有时间限制,不断循环播放,而且鼠标放上去广告也不消失,并加一个最小化和关闭的按钮就行,谢谢大家指点了!
------解决方案-------------------- oPopup.hide();
把所有的这个去掉!呵呵!不就OK了?