吐槽,为刷迅雷写得一个连点器
今天,我写了一个鼠标连点器,刷迅雷累死人了就是那个niu迅雷,然后用了一个javascript脚本测试玩玩,html编码如下
- <html>
- <head>
- <title>javascript测试点击次数和时间</title>
- <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- x = 0;
- e = 0;
- $("#cc").click(function(){
- if (x==1){
- x = x + 1;
- $("#view").html(x);
- time();
- }else{
- x = x + 1;
- $("#view").html(x);
- }
- });
- function time(){
- setTimeout(function() {
- b = $("#timev").html();
- c = $("#view").html();
- c = parseInt(c);
- f = c - e;
- d = b + ",";
- d = d + f;
- $("#timev").html(d);
- e = c;
- time();
- }, 1000);}
- });
- </script>
- </head>
- <body>
- <input id="cc" value="点我" type="button">
- <p id="view"></p>
- 每一秒点击次数(以逗号分开):
- <p id="timev"></p>
- </body>
- </html>
点击文件走你
由于流量有限,百度云盘下载吧~~~