<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;" />