<!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> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <style type="text/css"> body{ font-size:12px;} </style> <script language="javascript"> function add(txt) { var abc = document.getElementByIdx_x("abc"); abc.innerHTML = parseInt(abc.innerHTML) + 1; } </script> </head> <body> <table cellpadding="0" cellspacing="0"> <tr> <td valign="middle"><div>0</div></td> </tr> <tr> <td valign="middle"><a href="#">投一票</a></td> </tr> </table> </body> </html>
基于js实现投票的实例代码(2)
内容版权声明:除非注明,否则皆为本站原创文章。