《document write》
<script type="text/javascript"> function checkloginform(){ var username = document.getElementById("user_name").value; var password=document.getElementById("password").value; var verifycode = document.getElementById("VerifyCode").value; if (username.length<2) { alert('请填写用户名!'); document.getElementById("user_name").focus(); return false; } if (password.length<2){ alert('请填写密码!'); document.getElementById("password").focus(); return false; } } document.write('<form name="Theform" action="http://search.examda.com/search/service/userlogin.asp" method="post" target="_blank"><div class="login" > 用户名: <input size="13" name=user_name value="" /> 密 码: <input type="password" size="13" value="" name=password / ><input type="hidden" name="VerifyCode" value="8888"><input type="hidden" name="Action" value="submit"></div><div class="btn" ><input type="image" src="http://www.examda.com/img_beta1/login.gif" value="登录" name="loginsubmit" / style="border:0px; background-color:#CC0000; height:19px; line-height:22px; color:#FFFFFF; width:50px; margin-top:1px;"></div><div class="btn" >[<a href="http://search.examda.com/search/reg/register.asp" style="color:#003366">注册</a>] [<a href="http://www.examda.com/wangxiao/" style="color:#003366">选课导航</a>]</div></form>'); </script> |