`

js教你如何进行刷票

    博客分类:
  • JS
 
阅读更多
1、用调试工具找到投票的url,(IE F12开发工具,或者Fire fox的firedebug)

2、编写html代码
<!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>
    <title>
        投票啦,哈哈
    </title>
   <script type="text/javascript">
        alert("准备投票咯");
        var i=0;
         var handler = function(){ 
         var iframe = document.createElement("iframe");
         iframe.style.display = "none";
         iframe.id = "iframe" + i;
         document.body.appendChild(iframe);
         document.getElementById("iframe" + i).src = 'http://xxx?topicid=9999999';
           i++;
         }   
         if(i<1000){
         if(i==900){
         alert("哥们,我已经帮你投了900次了");
         }else{  
         var timer = setInterval( handler , 1000);
         }
         }  
    </script>
</head>
<body>
<form >
</form>

</body>
</html>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics