当前位置:首页 > 微信投票教程 > 正文内容

目前最新的网络刷票器代码分享

2018-08-03 21:32:53 | 分类:微信投票教程 | 评论:0人 | 浏览:2,672次

投票活动快速互投提升票数请加— —纯人工互投提升票数数量.互相投票以娱乐为主!

目前最新的网络刷票器代码分享

今天我来给大家分享一个最新的网络刷票器的代码,现在网上能够使用的网络刷票器实在是太少了,很多的刷票器基本都跟不上更新,导致就成为了一个空架子,那么对于刷票需求的小伙伴现在只有增多没有减少,那么对于这样的最新的网络刷票器代码就显的非常重要了,那么下面有兴趣的小伙伴可以看下具体的代码吧
目前最新的网络刷票器代码分享
<html>
<head>
<meta charset=”utf-8″>
<title>带你装逼带你飞</title>
<script>
function getVote(int) {
if (window.XMLHttpRequest) {
// IE7+, Firefox, Chrome, Opera, Safari 执行代码
xmlhttp=new XMLHttpRequest();
} else {
// IE6, IE5 执行代码
xmlhttp=new ActiveXObject(“Microsoft.XMLHTTP”);
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(“poll”).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open(“GET”,”poll_vote.php?vote=”+int,true);
xmlhttp.send();
}
</script>
</head>
<body>
<style>
body{
background: url(“a.jpg”);
}
</style>
<div id=”poll”>
<h3>你喜欢你老婆?</h3>
<form>
喜欢:
<input type=”radio” name=”vote” value=”0″ onclick=”getVote(this.value)”>
<br>不喜欢:
<input type=”radio” name=”vote” value=”1″ onclick=”getVote(this.value)”>
</form>
</div>
</body>
</html>

poll_vote.php

<?php
$vote = htmlspecialchars($_REQUEST[‘vote’]);

// 获取文件中存储的数据
$filename = “poll_result.txt”;
$content = file($filename);

// 将数据分割到数组中
$array = explode(“||”, $content[0]);
$yes = $array[0];
$no = $array[1];

if ($vote == 0)
{
$yes = $yes + 1;
}

if ($vote == 1)
{
$no = $no + 1;
}

// 插入投票数据
$insertvote = $yes.”||”.$no;
$fp = fopen($filename,”w”);
fputs($fp,$insertvote);
fclose($fp);
?>

<h2>投票结果:</h2>
<table>
<tr>
<td>喜欢:</td>
<td>
<span style=”display: inline-block; background-color:green;
width:<?php echo(100*round($yes/($no+$yes),2)); ?>px;
height:20px;” ></span>
<?php echo(100*round($yes/($no+$yes),2)); ?>%
</td>
</tr>
<tr>
<td>不喜欢:</td>
<td>
<span style=”display: inline-block; background-color:red;
width:<?php echo(100*round($no/($no+$yes),2)); ?>px;
height:20px;”></span>
<?php echo(100*round($no/($no+$yes),2)); ?>%
</td>
</tr>
</table>

版权说明:文章均为海王信投票专家原创,转载本文请注明出处和附带本文链接:https://www.aivtp.com/4285.html

上一篇: 关于网络投票刷票神器的代码编写

下一篇:手机微信免费刷票神器,如何使用?

站内搜索