<div class="codetitle"> <span><a style="CURSOR: pointer" data="56936" class="copybut" id="copybut56936" onclick="doCopy('code56936')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code56936"> <br><script type="text/javascript"><br>var $= function(id)<br>{<br> return document.getElementById(id);<br>}<br>function check()<br>{<br> if( $('username').value == "" )<br> {<br> $('eusername').innerHTML='<p class="login_jjB"> 请输入注册用户名!</p>'; <br> return false;<br> }<br> else<br> {<br> $('eusername').innerHTML='';<br> }<br> if( $('passwd').value == "" )<br> {<br> $('epasswd').innerHTML='<p class="login_jjB"> 输入密码!</p>';<br> return false; <br> }<br> else<br> {<br> $('epasswd').innerHTML='';<br> }<br> if( $('passwd2').value != $('passwd').value )<br> {<br> $('epasswd2').innerHTML='<p class="login_jjB"> 两次输入密码不一致!</p>';<br> return false; <br> }<br> else<br> {<br> $('epasswd2').innerHTML='';<br> }<br> if( $('email').value == "" )<br> {<br> $('eemail').innerHTML='<p class="login_jjB"> 邮箱地址!</p>'; <br> return false; <br> }<br> else<br> {<br> $('eemail').innerHTML='';<br> }<br> if( $('vaild').value == "" )<br> {<br> $('evaild').innerHTML='<p class="login_jjB"> 请输入右边验证码!</p>'; <br> return false; <br> }<br> else<br> {<br> $('evaild').innerHTML='';<br> } <br>}<br></script><br><form name="registerform" id="registerform" method="POST" action=""><br><input type="hidden" name="action" value="register"><br> <input type="hidden" name="user_type" value="1"><br><ul><li><h1>用户名:</h1><br> <div class="login_jjA"><br> <span style="display:none;"><br> <select name="cityid" id="cityid" style="width:100px;" onblur="changelocation(document.registerform.cityid.options[document.registerform.cityid.selectedIndex].value)"><br> <option value="">--公司不限--</option><br> <option value="2">--杭州舍易房地产代理有限公司--</option><br> </select><br> <select name="cityareaid" style="width:100px;" id="cityareaid"><br> <option value="0">--不限门店--</option><br> </select><br> </span><br> <input name="username" id="username" type="text" class="jinru_in" value="" onblur="check();" onclick="check();" /></div><br> <div id="eusername"></div><br> </li><br> <li><h1>密码:</h1><br> <div class="login_jjA"><input name="passwd" type="password" id="passwd" class="jinru_in" onblur="check();" onclick="check();" /></div><br> <div id="epasswd"></div><br> </li><br> <li><h1>确认密码:</h1><br> <div class="login_jjA"><input name="passwd2" type="password" id="passwd2" class="jinru_in" onblur="check();" onclick="check();" /></div><br> <div id="epasswd2"></div><br> </li><br> <li><h1>邮箱地址:</h1><br> <div class="login_jjA"><input name="email" type="text" size="30" id="email" value="" class="jinru_in" onblur="check();" onclick="check();" /></div><br> <div id="eemail"></div><br> </li><br> <li><h1>验证码:</h1><br> <div class="login_jjA"><br> <입력 이름=" vaild" type="text" class="inlen" id="vaild" onblur="check();" onclick="확인();" size="5" /><img src="/valid.php" /></div><br> <div id="ever"></div><br> < /li><br> <li style="height:35px;"><h1> <br> <div class="jinruD"><input value=" " type="submit" onclick="javascript:return check();" class="login_jj_btn"/></div><br> </li><br> </ul><br> </form><br> </div>