网站刷新器

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>袁博刷点 高效一流</title>
<script language="javascript">
var count=3;
var sumcount=100;//默认100次
var intervalid;
var url;
function funfirst()
{
    intervalid=setInterval("fun1()",1000)
    var txtsum=document.getElementById("txtcount").value;
    if(txtsum.length!=0)
    {
        sumcount=parseInt(txtsum);
    }    
}
function fun1()
{
    sumcount--;
    var onclickurl=document.getElementById("txturl").value;    
    url=window.open("http://"+onclickurl,"_blank","");    
    if(sumcount<=1)
    {
      fun3();
    }
    fun2();
}
function fun2()
{
    count--;
    if(count<0)
    {
        url.close();
    }
}
function fun3()
{
    clearInterval(intervalid);
}
</script>
</head>
<body>
请在下输入你想要刷的网址(注:本产品仅支持在IE浏览器使用)
<table width="326" border="1">
  <tr>
    <td width="168"><input type="text" id="txturl"  /></td>
    <td width="68"><input type="button" value="开始刷点" onclick="funfirst()"></td>
    <td width="68"><input type="button" value="停止刷点" onclick="fun3()" /></td>
  </tr>
  <tr>
    <td height="33">格式如:www.baidu.com</td>
    <td>刷点次数</td>
    <td><input type="text" id="txtcount"  width="20px" />
    默认为100次</td>
  </tr>
</table>
</body>
</html>

 

posted on 2014-09-02 10:27  泪雨星空  阅读(155)  评论(0编辑  收藏  举报

导航