局部刷新页面,改变验证码

<script language="javascript">
     function getimgcode()
         {
              var randomnum = Math.random();
              var getimagecode = document.getElementById("getcode");
              getimagecode.src = "CheckCode.aspx?" + randomnum;
         }
</script>

 

<IMG id="getcode" alt="" src="CheckCode.aspx"><A href="javascript:getimgcode()">刷新验证码</A>

posted @ 2007-07-20 01:58  星空竹月  阅读(1158)  评论(2编辑  收藏  举报