你的位置:首页 > 软件开发 > Java > 投票系统 简易js刷票脚本

投票系统 简易js刷票脚本

发布时间:2015-04-05 19:01:46
早就听说有什么刷票脚本,微博投票等等相关的投票都有某些人去刷票。试一下吧,兴许自己也会刷票呢?捣鼓了几个小时,终于有所眉目。(1)投票系统要刷票,就得先有个投票界面。当然,可以直接去各个投票网站就行,不过这里还是自己弄个投票页面,方便自己。页面大致如下 或者 查看演示 ...

投票系统  简易js刷票脚本

早就听说有什么刷票脚本,微博投票等等相关的投票都有某些人去刷票。

试一下吧,兴许自己也会刷票呢?捣鼓了几个小时,终于有所眉目。

(1)投票系统

要刷票,就得先有个投票界面。

当然,可以直接去各个投票网站就行,不过这里还是自己弄个投票页面,方便自己。

页面大致如下  或者 查看演示

投票系统  简易js刷票脚本

 

照理,界面很简洁,但也基本有了投票的基本功能。

原始规则是:只能投一次票,然后提示成功,然后按钮不可用。

都是原生JS,DOM操作不灵活的可以借此练练手。当然,用jq将会很便捷。

html/css部分

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html ="http://www.w3.org/1999/xhtml"><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/><head><title>投票系统 & js脚本简单刷票</title><style type="text/css">  *{padding: 0;margin: 0;}  #wrap{margin: 0 auto; width:600px; text-align: center;}  .person{position: relative; margin: 20px; float: left;}  .person h4,  .person p,   .person button{margin-bottom: 5px;}  .person h4{color: blue;}  .person span{color: red;}  .person button:hover{cursor: pointer; font-weight: bold;}  .clear{clear: both;}</style></head><body><div id="wrap"><h3>给你的小伙伴投上一票吧</h3>  <div class="person">    <h4>one</h4>    <p>总票数: <span>0</span> 票</p>    <button>给它投票</button>  </div>  <div class="person">    <h4>two</h4>    <p>总票数: <span>0</span> 票</p>    <button>给它投票</button>  </div>  <div class="person">    <h4>three</h4>    <p>总票数: <span>0</span> 票</p>    <button>给它投票</button>  </div>  <div class="person">    <h4>four</h4>    <p>总票数: <span>0</span> 票</p>    <button>给它投票</button>  </div>  <div class="clear"></div></div>

原标题:投票系统 简易js刷票脚本

关键词:JS

JS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。