<div class="codetitle"> <span><a style="CURSOR: pointer" data="4284" class="copybut" id="copybut4284" onclick="doCopy('code4284')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code4284"> <br><script language="javascript1.2"><!-- <BR>function test() { <BR>if((a.b.value.indexOf ("***") == 0)||(a.b.value.indexOf ("****") == 0)){ <BR>alert(":)"); <BR>a.b.focus(); <BR>return false;} <BR>} <BR>// --></script> <br><form name="a" onsubmit="return test()"> <br><input type="text" name="b"> <br><input type="submit" name="Submit" value="check"> <br> </form> <br> </div>