我使用setTimeout() 来延时一秒,但没有效果,不知道什么地方出错了,现列出基本代码,请大家指正。 首先,在DIV中添加了鼠标动作: Javascript代码如下 function closelink(){window.setTimeout('closel()',1000);} function closel(){document.getElem
<script type="text/javascript">
var showtheforever=false;
function closelink(){window.setTimeout('closel()',1000);}
function closel(){if(showtheforever)return;showtheforever=false;document.getElementById("theforever").style.display="none";}
</script>