点击验证码重新加载验证码图片JavaScript代码

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<script language="JavaScript">
function refreshcapture(){
var imgid=document.getElementById('captchaImg');
imgid.setAttribute('src','stickyCaptcha.png?'+Math.random());
//加入随机数不然地址相同
}
</script>
 
 
 
<img src="stickyCaptcha.png"    id="captchaImg" border="0" onclick="refreshcapture()"  style="cursor:hand;"  />