〖文章分类:电脑·手机·网络 / HTML·CSS·JavaScript〗〖阅读选项〗 |
<Script Language="JavaScript"> <!-- function CheckForm() { if (document.SendMail.M_Email.value=="") { // SendMail.M_Email.value="必须填写收信人邮箱地址..."; // alert("必须填写收信人邮箱地址..."); // EM_M_Email.innerText="<font color=#FF0000>必须填写收信人邮箱地址</font>" EM_M_Email.innerHTML="<font color=#FF0000>必须填写收信人邮箱地址</font>" return (false); }
if ((document.SendMail.M_Email.value.indexOf("@")==-1)||(document.SendMail.M_Email.value.indexOf(".")==-1)) { EM_M_Email.innerHTML="<font color=#FF0000>无效的收信人邮箱地址</font>" return (false); } return true; } //--> </Script>
<form name="SendMail" method="post" action="SendMail.asp" onSubmit="return CheckForm();"> <input type="text" name="M_Email" size="20" maxlength="100"> <span id="EM_M_Email" style="font-size:12px;color:#000000">填写收信人邮箱地址</span> <br> <input type="submit" name="Submit" value="提交" class="Button_ok"> </form>
|
文章作者:未知 更新日期:2007-06-06 |
〖文章浏览:〗〖发送文章〗〖打印文章〗 |
|
|