4月27

每隔一段时间执行一次的网页的代码

| |
10:56 ASP  From: 本站原创

<html>
  <head>  
  <title>每隔几秒执行一次网页</title>  
    <script   type="text/javascript">  
    //<![CDATA[  
function   mission()   {  
      var   x   =   new   ActiveXObject("Msxml2.XMLHTTP.3.0");  
      x.open("get","shuaxin.asp"+Math.random().toFixed(4),false);   //执行shuaxin.asp页面,修改为自己要调用的页面
     x.send();
      var   demo   =   document.getElementById("demo");  
      var   now   =   demo.innerHTML   =   x.responseText;
      _x   =   window.setTimeout(mission,1000);  //1000毫秒执行一次
  }
    onload   =   mission;  
    //]]>  
    </script>  
  </head>  
  <body>  
  <div   id="demo"></div>  
  </body>  
  </html>  

阅读(4039) | 评论(0) | 引用(0)
在此留下酱油瓶-:)
表情
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我

您的大名(例如:小明) : 

密码(可不填) :  游客无需密码

网址 (可不填) : 

电邮 (可不填) :  [注册]