请大虾们提供,非常感谢~
------解决方案--------------------
如果说验证码的调用程序是: <span name= "id123 "> <%getcode%> </span>
那么在调用的程序里修改一下就可以实现点击后自动更换背景
<script language= "javascript ">
function reloadcode(){
document.getElementById( 'wdyzm ').src = 'regcode.asp ';
}
</script>
<%
sub GetCode()
Dim Result
On Error Resume Next
If Err.number <> 0 Then
Dim zNum
Randomize timer
zNum = cint(8999*Rnd+1000)
Session( "GetCode ") = zNum
Result=Session( "GetCode ")
Else
Result= " <img src= " "regcode.asp " " name= " "wdyzm " " alt= " "验证码,看不清楚?请点击刷新验证码 " " align= " "absmiddle " " style= " "cursor : pointer; " " onclick= " "this.src= 'regcode.asp ' " "> [ <a href= " "javascript:reloadcode(); " " title= " "点击刷新验证码 " "> 看不清楚? </a> ] "
End If
Response.Write Result
End sub
%>