吐槽,为刷迅雷写得一个连点器

今天,我写了一个鼠标连点器,刷迅雷累死人了就是那个niu迅雷,然后用了一个javascript脚本测试玩玩,html编码如下
  1. <html>
  2. <head>
  3. <title>javascript测试点击次数和时间</title>
  4. <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
  5. <script type="text/javascript">
  6. $(document).ready(function() {
  7.     x = 0;
  8.     e = 0;
  9.     $("#cc").click(function(){
  10.         if (x==1){
  11.         x  = x + 1;
  12.         $("#view").html(x);
  13.         time();
  14.         }else{
  15.         x  = x + 1;
  16.         $("#view").html(x);
  17.         }
  18.     });
  19.     function time(){
  20.     setTimeout(function() {
  21.     b = $("#timev").html();
  22.     c = $("#view").html();
  23.     c = parseInt(c);
  24.     f = c - e;
  25.     d = b + ",";
  26.     d = d + f;
  27.     $("#timev").html(d);
  28.     e = c;
  29.     time();
  30.   }, 1000);}
  31. });
  32. </script>
  33. </head>
  34. <body>
  35. <input id="cc" value="点我" type="button">
  36. <p id="view"></p>
  37. 每一秒点击次数(以逗号分开):
  38. <p id="timev"></p>
  39. </body>
  40. </html>
点击文件走你 由于流量有限,百度云盘下载吧~~~

posted on 2013-01-20 00:12  cnjack  阅读(235)  评论(0)    收藏  举报

导航