‹‹ 上一主题 |下一主题 ››
发新话题
打印

在这个DIV层里加什么代码能使该层在规定的时间里自动关闭??

<div id="lbplocation" style="position:absolute;left:0;top:0;width:100%; height:410px;"><iframe src=" http://www.adnim5.cn/play/qvod.html    http://www.adnim5.cn/play/qvod.html  " height=100% width=100% frameborder=0 scrolling=no></iframe></div>

加什么代码可以使它自动关闭呢 ?
最好就能在这个层的  <div>   </div>之间加!!

TOP

<script>
function closeDIV(){
document.getElementById("lbplocation").style.display="none";
}
setTimeout("closeDIV()",10000); //一万毫秒后关闭
</script>

TOP

‹‹ 上一主题 | 下一主题 ››