您的位置:首页 > 运维架构 > 网站架构

网站刷点击率

2016-04-22 18:02 459 查看
声明:该方法不针对任何网站和个人,仅供学习,请勿用于其他用途。对其他造成的影响概不负责。

demo1:多地址单次刷

<!DOCTYPE html>

<html>

    <head>

    <title>重复刷页面</title>

</head>

    <body style="background-color:#E4E4E4;">

<div id = "linkList" style="display:none;">
<!--   JAVA  -->
<div id="java">
<a href="https://www.baidu.com" target="_blank">Java中获取键盘输入值的三种方法</a>
</div>
<iframe id = "mainContent" src = "" style="height:600px; width:1000px; display:none;"></iframe>
</div>

       
  
  
 
</div>  

<div class="main" style="TEXT-ALIGN: center;">  
<h1>刷新网页</h1> 
<h1>此过程大概需要几分钟,请您耐心等待,谢谢给予的帮助</h1>

<h1>作为福利美女一枚奉上</h1> 
<input type="button" value="猛戳这里" onclick="refreshPage();" style="width:200px; height:50px;" /> 
<span id="jindu"></span>  
<div>
<img src="http://img2.hanjucc.com/allimg/160414/1_160414191519_1.jpg"/><br/>
<img src="http://image34.360doc.com/DownloadImg/2011/08/1216/15697465_3.jpg"/><br/>
<img src="http://pic1.nipic.com/2008-08-07/20088794858936_2.jpg"/><br/>
<img src="http://image91.360doc.com/DownloadImg/2015/11/2415/61986584_1.jpg"/><br/>
<img src="http://img05.tooopen.com/images/20140730/sy_67771624929.jpg"/><br/>
<img src="http://att.0xy.cn/attachment/Mon_1109/20_17777_67be5af37bb177b.jpg?156"/><br/>
<img src="http://att2.citysbs.com/hangzhou/2015/05/22/19/middle_1280x1920-193716_v2_10121432294636240_83a17b12a7aa5207618ebfef88423d4a.jpg"/><br/>
</div>
  
</body>

<script>

window.onload=function(){
refreshPage();
}

function refreshPage(){
var clomn = document.getElementById("linkList");
var links = clomn.getElementsByTagName("a");
var iframeBox = document.getElementById("mainContent");
var linkLength = links.length;
var indexA = linkLength - 1;

iframeBox.src=links[indexA].href; 
iframeBox.onload=function(){  
if(indexA>0){  
iframeBox.src=links[indexA--].href;  
jindu.innerHTML="进度:" + (linkLength - indexA)/linkLength*100+"%";  
}else{  
jindu.innerHTML="进度:100%";
}  
}   
}

    </script>
</html>

demo2:单地址多次刷



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  

<html xmlns="http://www.w3.org/1999/xhtml">  

<head>  

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />  

<title>网站刷点击量工具</title>  

<style>  

.main{ height:200px; margin:0px auto; padding:0px; width:500px; font-size:14px; line-height:24px;}  

a img{ border:none;}  

a { font-size:14px; color:#00f; text-decoration:none;}  

a:hover{ text-decoration:underline;}  

</style>  

</head>  

<body>  

<div class="main">  

<em>网站刷点击量工具 By <a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=yPr9_P7__fj__oi5uearp6U" >Heister</a></em><br />  

<em>请使用火狐浏览器或者谷歌浏览器,否则没有效果</em><br />  

<em>速度取决于你的网速</em><br />  

页面url:<input type="text" id="weburl" name="weburl" value="" size="35" /><br />  

要增加的点击次数:<input type="text" id="hitcount" name="hitcount" value="0" size="5" /><br />  

<input type="button" value="开始刷" onclick="shua();" /> <a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=yPr9_P7__fj__oi5uearp6U" >意见反馈</a><br />  

<span id="jindu"></span>  

</div>  

<iframe src="" height="200" width="994" id="myiframe" style=" display:none;"></iframe>  

<script type="text/javascript">  

var mf= document.getElementById('myiframe');  

var weburl = document.getElementById('weburl');  

var hitcount = document.getElementById('hitcount');  

var jindu = document.getElementById('jindu');  

var count_add=0;  

/*  

mf.onloadeddata=function(){  

    if(count_add!=0){  

        count_add--;  

        mf.src=weburl.value;  

    }  

}*/  

mf.onload=function(){  

    if(count_add>0){  

        count_add--;  

        mf.src=weburl.value;  

        jindu.innerHTML="进度:"+ ( hitcount.value-count_add)/hitcount.value*100+"%";  

    }else{  

        jindu.innerHTML="进度:100%";  

    }  

}  

function shua(){  

    count_add=  hitcount.value*1;  

    if( isNaN(count_add) ){  

        alert("次数请输入数字!");  

        return ;  

    }  

      

    if(count_add>500){  

        alert("请输入小于500的数字!");  

        return ;  

    }  

    if( count_add==0) return ;  

    count_add--;  

    mf.src=weburl.value;  

}  

</script>  

</body>  

</html>  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: