你的位置:首页 > Java教程

[Java教程]原生JS投票特效


效果:
http://hovertree.com/texiao/js/24/

效果图:



代码如下:

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>JS+CSS实现投票效果 - 何问起</title><link rel="stylesheet" href="http://hovertree.com/texiao/js/24/style.css" type="text/css"><script src="http://hovertree.com/texiao/js/24/vote.js" type="text/javascript"></script></head><body><div><h1>Javascript实现在线调查投票</h1><a href="http://hovertree.com/h/bjaf/jsdiaocha.htm">原文</a> <a href="http://hovertree.com">首页</a> <a href="http://hovertree.com/texiao/">特效</a></div><!--问卷调查内容--><div class="vote"><div class="votechoice"><ul class="vote1">1.您觉得现在哪些开发语言有前途:<li><input type="checkbox" value="C#" /><span class="votechoicename">C#</span></li><li><input type="checkbox" value="Java" /><span class="votechoicename">Java</span></li><li><input type="checkbox" value="Swift" /><span class="votechoicename">Swift</span></li><li><input type="checkbox" value="C++" /><span class="votechoicename">C++</span></li><li><input type="checkbox" value="JavaScript" /><span class="votechoicename">JavaScript</span></li><li><input type="checkbox" value="其他" /><span class="votechoicename">其他</span></li><li><button type="button" class="button blue" onClick="submitvote(this)">投票</button></li></ul></div><div class="votechoice"><ul class="vote2">2.您认为哪些网站适合手机或触屏访问:<li><input type="checkbox" value="博客园" /><span class="votechoicename">博客园</span></li><li><input type="checkbox" value="何问起" /><span class="votechoicename">何问起</span></li><li><input type="checkbox" value="CSDN" /><span class="votechoicename">CSDN</span></li><li><input type="checkbox" value="柯乐义" /><span class="votechoicename">柯乐义</span></li><li><input type="checkbox" value="GitHub" /><span class="votechoicename">GitHub</span></li><li><input type="checkbox" value="hovertree.net" /><span class="votechoicename">hovertree.net</span></li><li><button type="button" class="button blue" onClick="submitvote(this)">投票</button></li></ul></div> </div></body></html>

转自:http://hovertree.com/h/bjaf/jsdiaocha.htm

特效:http://www.cnblogs.com/roucheng/p/texiao.html