设置超时来打开一个广告窗口就是啊。。window.onload=function(){
window.setTimeout("window.open('aa.htm','test','width=200;height=100;')",50000);
}页面装载好后五秒后再打开一个广告窗口是不是要这样?

解决方案 »

  1.   

    onload="show_flash()";
    两边的<div name="xxx" style="display:none;">
    到要的时候,其实就是show_flash()里将xxx.style.display="block"
      

  2.   

    <script language="JavaScript">
    var popWin
    var iAdTimerID = 0;
    function delayPopWindow()
    {
    iAdTimerID = setTimeout("popWindow()",6000);
    }
    function popWindow()
    {
     if(popWin != null)
     {
          popWin.close();
         
     }
     clearTimeout(iAdTimerID); var left = Math.floor( (screen.width - 800) / 2);
     var top = Math.floor( (screen.height - 600) / 2);
     popWin = window.open("pop/0705/index.html","111","width=800,height=600,scrollbars=yes,left=" + left + ",top=" + top);
     popWin.focus();
    }
    </script>
    <script LANGUAGE='JavaScript'>
    delayPopWindow()
    </script>