87,990
社区成员
发帖
与我相关
我的任务
分享
<%
Randomize
Session("num1")=INT(10*RND)
Session("num2")=INT(10*RND)
%>
验证码: <span id="code_pad" style="cursor:pointer" onclick="document.frames['hf'].location.href='test1.asp?' + escape(new Date())"><%=Session("num1")%>+<%=Session("num2")%></span>= <input type="text" name="numcode" id="numcode"/>
<iframe name="hf" style="display:none"></iframe>
<%
Randomize
Dim code
Session("num1")=INT(10*RND)
Session("num2")=INT(10*RND)
code = Session("num1") + Session("num2")
%>
<script type="text/javascript">
window.onload =function(){
parent.document.getElementById('code_pad').innerHTML = "<%=code%>";
location.replace('about:blank');
}
</script>