<!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>js 代码</title>
</head>
<body>
<tr>
<td height="25" align="right">验证码:</td>
<td width="14%"><input name="ver" type="text" class="input1" id="ver" size="5"></td>
<td width="40%"><img src="../inc/ver.php教程" onclick="this.src='../inc/ver.php';" /></td>
<td></td>
</tr>
jquery 刷新验证码代码
<script>
function changeauthcode() {
var num = new date().gettime();
var rand = math.round(math.random() * 10000);
num = num + rand;
$('#ver_code').css教程('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../www.111cn.net/vdimgck.php?tag=" + num;
}
return false;
}
</script><li><span>验证码:</span>
<input type="text" class="intxt w200" style="width: 50px; text-transform: uppercase;" id="vdcode" name="vdcode"/><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/>
看不清? <a href="javascript:void(0)" onclick="changeauthcode();">点击更换</a></li>
</body>
</html>