| 发表于:2007-04-24 16:27:211楼 得分:0 |
<head> <script> function checkform(form){ if (form.shipacct.value == " "){ chck(form.shipacct); return false; } } function chck(obj){ if(obj.value!= ' '){document.getelementbyid( 'msg ').style.display = 'none '}else{document.getelementbyid( 'msg ').style.display = ' ';} } </script> </head> <body onload= "chck(document.forms[0].shipacct); "> <form onsubmit= "return checkform(this); "> .... <input name= " "... onblur= "chck(this); " /> <span id= "msg "> asdfdsfdsfdsfdsf </span> .... </form> | | |
|