免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3414 | 回复: 2
打印 上一主题 下一主题

懂JS的帮我看看,为什么总会被会注册空白或者乱码信息 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-09 09:08 |只看该作者 |倒序浏览
本帖最后由 1263761 于 2010-09-10 11:46 编辑
  1. <SCRIPT language=JavaScript type=text/JavaScript>  
  2. function  openwin(page){  
  3. window.open(page,'_blank','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,scrolling=no,resizable=no,width=560,height=350,top=0,left=0');  
  4. }
  5. </SCRIPT>
  6. <SCRIPT language=JavaScript>   
  7. function   getrandom(len)   
  8. {   
  9. var   seed   =   new   Array(   
  10. '0123456789',   
  11. '0123456789',   
  12. '0123456789'   
  13. );   
  14. var   idx,i;   
  15. var   result   =   'vip';   
  16. for   (i=0;   i<len;   i++)   
  17. {   
  18. idx   =   Math.floor(Math.random()*3);   
  19. result   +=   seed[idx].substr(Math.floor(Math.random()*(seed[idx].length)),   1);   
  20. }   

  21. return   result;
  22. }   
  23. </SCRIPT>
  24. <SCRIPT language=javascript id=Infragistics>
  25. <!--
  26. function getRandPw()
  27. {
  28.     var PwdShow = document.getElementById("lblPwShow");
  29.     var rand_num =1;
  30.     var randstr = "";
  31.     var randResult ="";
  32.     var rand_style = 0;
  33.     var pwScore = 0;
  34.    
  35.     while (pwScore <= 32)
  36.     {
  37.         randResult = "";
  38.         for (var i=0; i < 8; i++)
  39.         {
  40.             rand_style = Math.floor(9* Math.random()) % 2;
  41.             if (rand_style == 1)
  42.             {
  43.                 //Gen a-e
  44.                 rand_num = Math.floor(5 * Math.random());
  45.                 randstr = String.fromCharCode(rand_num + 65);
  46.                 randResult += randstr;
  47.             }
  48.             else
  49.             {
  50.                 //Gen 0-9
  51.                 rand_num = Math.floor(9 * Math.random());
  52.                 randstr = String.fromCharCode(rand_num + 48);
  53.                 randResult += randstr;
  54.             }
  55.         }
  56.         pwScore = doGetPassScorejs(randResult);
  57.     }
  58.    
  59.     PwdShow.value = randResult;
  60. }
  61. function doGetPassScorejs( _pass )
  62. {
  63.      var _score = 0;
  64.      var _dup = 0;
  65.      var _run = 0;
  66.      var _hasSpecial    = false;
  67.      var _hasNumber     = false;
  68.      var _hasLowerCase  = false;
  69.      var _hasUpperCase  = false;
  70.      
  71.      //check duplicated letter: infoPassDupLetter
  72.      for( var i = 0; i < _pass.length; i++ ){
  73.       var _tmpArr = _pass.split(_pass.substr(i,1));
  74.       if( _tmpArr.length > 4 ){
  75.        _dup = 0;
  76.        for( var j = 0; j < _tmpArr.length; j++ ){
  77.         if( _tmpArr[j].length == 0 && j > 0 )_dup++;
  78.        }
  79.        if( _dup >= 3 ){
  80.         _score = 0;
  81.         break;
  82.        }
  83.       }else{
  84.        if( _pass.charCodeAt(i) >= 33 && _pass.charCodeAt(i) <= 47 ||
  85.         _pass.charCodeAt(i) >= 58 && _pass.charCodeAt(i) <= 64 ||
  86.         _pass.charCodeAt(i) >= 91 && _pass.charCodeAt(i) <= 96 ||
  87.         _pass.charCodeAt(i) >= 123 && _pass.charCodeAt(i) <= 126 ){
  88.         // special characters
  89.         _score += 10;
  90.         _hasSpecial = true;
  91.        }else{
  92.         if( _pass.charCodeAt(i) >= 48 && _pass.charCodeAt(i) <= 57 ){
  93.          // 0~9
  94.          _score += 4;
  95.          _hasNumber = true;
  96.         }else{
  97.          if( _pass.charCodeAt(i) >= 65 && _pass.charCodeAt(i) <= 90 ||
  98.           _pass.charCodeAt(i) >= 97 && _pass.charCodeAt(i) <= 122 ){
  99.           // A~Z || a~z
  100.           _score += 7;
  101.           if( _pass.charCodeAt(i) >= 65 && _pass.charCodeAt(i) <= 90 )_hasUpperCase = true;
  102.           else _hasLowerCase = true;
  103.          }else{
  104.           // no other special characters allowed
  105.           _score = 0;
  106.           break;
  107.          }
  108.         }
  109.        }
  110.       }
  111.      }
  112.      if( _score > 0 ){
  113.       if( _hasSpecial && _hasNumber || _hasSpecial && _hasUpperCase || _hasSpecial && _hasLowerCase )_score += 10;
  114.       if( _hasNumber && _hasUpperCase || _hasNumber && _hasLowerCase )_score += 8;
  115.       if( _hasUpperCase && _hasLowerCase )_score += 8;
  116.      }
  117.      // check running characters
  118.      if( _pass.length >= 4 ){
  119.       for( var i = 0; i < _pass.length - 3; i++ ){
  120.        // check only 0~9 && A~Z && a~z
  121.        if( _pass.charCodeAt(i) >= 48 && _pass.charCodeAt(i) <= 57 ||
  122.         _pass.charCodeAt(i) >= 65 && _pass.charCodeAt(i) <= 90 ||
  123.         _pass.charCodeAt(i) >= 97 && _pass.charCodeAt(i) <= 122 ){
  124.         _run = 0;
  125.         if( Math.abs( _pass.charCodeAt(i) - _pass.charCodeAt(i+1)) == 1 &&
  126.          Math.abs( _pass.charCodeAt(i+1) - _pass.charCodeAt(i+2)) == 1 &&
  127.          Math.abs( _pass.charCodeAt(i+2) - _pass.charCodeAt(i+3)) == 1 ){
  128.          _score = 0;
  129.          break;
  130.         }
  131.        }
  132.       }
  133.      }
  134.      return (( _score > 100 )?100:((_score < 0 )?0:_score));
  135. }
  136. -->
  137. </SCRIPT>
  138. <META content="MSHTML 6.00.3790.630" name=GENERATOR></HEAD>
  139. <BODY oncontextmenu=window.event.returnValue=false  onselectstart=event.returnValue=false ondragstart=window.event.returnValue=false  style="BACKGROUND: none transparent scroll repeat 0% 0%"  onload=document.all.txt.innerHTML=getrandom(5)  onsource="event.returnValue=false">
  140. <DIV align=left>
  141. <TABLE cellSpacing=0 cellPadding=0 width=685 border=0>
  142.   <TR>
  143.     <TD vAlign=center width=685>
  144.       <TABLE cellSpacing=0 cellPadding=0 width=733 border=0>
  145.         <TR>
  146.           <TD vAlign=top width=733>
  147.             <P class=STYLE2 align=center>&nbsp;</P>
  148.             <P class=STYLE2
  149.             align=left>&nbsp;</P>
  150.             <P class="STYLE2"><STRONG>(<span class="STYLE44">*</span></STRONG><span class="STYLE50">有標記的欄目必須填妥</span></P>
  151.            
  152.             <FORM id=form1 name=form1
  153.             onsubmit="javascript:return WebForm_OnSubmit();" action=admin/addUser.asp
  154.             method=post target=_self><INPUT id=__EVENTTARGET type=hidden              name=__EVENTTARGET> <INPUT id=__EVENTARGUMENT type=hidden              name=__EVENTARGUMENT> <INPUT id=__VIEWSTATE type=hidden              value=/wEPDwULLTEyNzYwODEyMTAPFgIeCENhbGxQYWdlBQtoZWFkZXIuYXNweBYCAgMPZBYcZg8PFgIeBFRleHQFDOS/ruaUueWvhueivGRkAgEPFgIeB1Zpc2libGVoFgJmD2QWAgIBDw8WAh8BBQznmbvlhaXluLPomZ9kZAICDw8WAh8BBUQq5a+G56K85b+F6aCI5L2/55SoKDAtOSxBLUUp6ICM5LiU6Iez5bCR54K6IDgg5oiW6Iez5aSaIDEyIOWAi+Wtl+WFg2RkAgMPDxYCHwEFDOeZu+WFpeWvhueivGRkAgUPDxYCHgxFcnJvck1lc3NhZ2UFDOiri+W/hei8uOWFpWRkAgcPDxYCHwMFEuWvhueivOeiuuiqjeS4jeespmRkAggPDxYCHwMFQ+WvhueivOW/hemgiOS9v+eUqCgwLTksQS1FKeiAjOS4lOiHs+WwkeeCuiA4IOaIluiHs+WkmiAxMiDlgIvlrZflhYNkZAIJDw8WAh8BBRvpmqjmqZ/mlrDlr4bnorzntYTlkIjmj5DnpLpkZAILDw8WAh8BBQznorroqo3lr4bnorxkZAINDw8WAh8DBQzoq4vlv4XovLjlhaVkZAIPDw8WAh8DBUPlr4bnorzlv4XpoIjkvb/nlKgoMC05LEEtRSnogIzkuJToh7PlsJHngrogOCDmiJboh7PlpJogMTIg5YCL5a2X5YWDZGQCEA8PFgQfAQUH5o+QIOS6pB4NT25DbGllbnRDbGlja2VkZAIRDw8WBB8BBQblj5bmtogfBGVkZAISDw8WAh8BBRLph43oqK3lr4bnorzlpLHmlZdkZGQk1ZhRvTqfQl+QOWpTlJ74Ygtxdg==              name=__VIEWSTATE>
  155.             <SCRIPT language=javascript>
  156. <!--
  157. var theForm = document.forms['form1'];
  158. if (!theForm) {
  159.     theForm = document.form1;
  160. }
  161. function __doPostBack(eventTarget, eventArgument) {
  162.     if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
  163.         theForm.__EVENTTARGET.value = eventTarget;
  164.         theForm.__EVENTARGUMENT.value = eventArgument;
  165.         theForm.submit();
  166.     }
  167. }
  168. // -->
  169. </SCRIPT>
  170.             <SCRIPT src="" type=text/javascript></SCRIPT>
  171.             <SCRIPT src="" type=text/javascript></SCRIPT>
  172.             <SCRIPT language=javascript>
  173. <!--
  174. function WebForm_OnSubmit()
  175. {
  176. document.form1.user_na_id.value=document.all.txt.innerHTML
  177. if (document.form1.wPwd1a.value==0)
  178. {
  179. alert("請輸入密碼!")
  180. document.form1.wPwd1a.focus()
  181. document.form1.wPwd1a.select()
  182. return false
  183. }
  184. field=document.form1.wPwd1a.value
  185. var text = new String(field);
  186. re = /^[a-zA-Z0-9]+\d*$/;
  187. re1 = /[0-9]/g;
  188. re2= /[a-zA-Z]/g;
  189. if(!re.test(text) || !re1.test(text) || !re2.test(text))
  190. {
  191. alert('密碼必須使用(0-9,A-E)而且至少為 8 或至多 12 個字元!');
  192. document.form1.wPwd1a.focus()
  193. document.form1.wPwd1a.select()
  194. return false;
  195. }
  196.        
  197. if(document.form1.wPwd2a.value==0){
  198. alert("請輸入確認密碼!");
  199. document.form1.wPwd2a.focus();
  200. return false;
  201. }       
  202. if(document.form1.username.value==0){
  203. alert("请输入中文姓名!");
  204. document.form1.username.focus();
  205. return false;
  206. }
  207. if(document.form1.user_cell.value==0){
  208. alert("請輸入手機號碼!");
  209. document.form1.user_cell.focus();
  210. return false;
  211. }
  212. if (isNaN(document.form1.user_cell.value)){
  213. alert("請正確輸入手機號碼!");
  214. document.form1.user_cell.focus();
  215. return false;
  216. }
  217. if(document.form1.moneytype.value=="6"&&document.form1.bankname.value==""){
  218. alert("請選擇銀行名稱!");
  219. document.form1.bankname.focus();
  220. return false;
  221. }
  222. if(document.form1.moneytype.value=="6"&&document.form1.bankno.value==""){
  223. alert("請輸入銀行戶口號碼!");
  224. document.form1.bankno.focus();
  225. return false;
  226. }
  227. if(document.form1.moneytype.value=="6"&&document.form1.rebankno.value==""){
  228. alert("請輸入確認銀行戶口號碼!");
  229. document.form1.rebankno.focus();
  230. return false;
  231. }
  232. if(document.form1.moneytype.value=="6"&&document.form1.bankarea.value==""){
  233. alert("請輸入銀行地區!");
  234. document.form1.bankarea.focus();
  235. return false;
  236. }
  237. if(document.form1.moneytype.value=="7"&&document.form1.bankname.value==""){
  238. alert("請選擇銀行名稱!");
  239. document.form1.bankname.focus();
  240. return false;
  241. }
  242. if(document.form1.moneytype.value=="7"&&document.form1.bankno.value==""){
  243. alert("請輸入銀行戶口號碼!");
  244. document.form1.bankno.focus();
  245. return false;
  246. }
  247. if(document.form1.moneytype.value=="7"&&document.form1.rebankno.value==""){
  248. alert("請輸入確認銀行戶口號碼!");
  249. document.form1.rebankno.focus();
  250. return false;
  251. }
  252. if(document.form1.moneytype.value=="7"&&document.form1.bankarea.value==""){
  253. alert("請輸入銀行地區!");
  254. document.form1.bankarea.focus();
  255. return false;
  256. }
  257. if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
  258. return true;
  259. }
  260. // -->
  261. </SCRIPT>
  262.             
  263.             <TABLE width=733 border=0>
  264.               <TBODY>
  265.               <TR>
  266.                 <TD width="100" height="24" nowrap class=STYLE2><div align="center"><span class="STYLE50"><U>賬戶資料</U></span> </div></TD>
  267.                 <TD class=STYLE2></TD>
  268.               </TR>
  269.               <TR>
  270.                 <TD width=100 height="25" nowrap class=STYLE2><div align="center"><span class="STYLE44">*</span><span class="STYLE50">用戶名稱:</span><STRONG>&nbsp;</STRONG></div></TD>
  271.                 <TD width=658 class=STYLE2><SPAN id=txt></SPAN>
  272.                   <INPUT name=user_na_id                    type=hidden id="user_na_id"> <INPUT onclick=document.all.txt.innerHTML=getrandom(5) type=button value=再選一次 name=button></TD></TR>
  273.               <TR>
  274.                 <TD width="100" valign="top" nowrap class=STYLE2><div align="center"><span class="STYLE44">*</span><span class="STYLE52">密碼:</span></div></TD>
  275.                 <TD class=STYLE2>
  276.                   <P>
  277.                     <input name=user_pass type=password id=wPwd1a style="WIDTH: 200px" size="12" maxlength=12                          readonly>
  278.                     <span class="STYLE37">密碼必須使用(0-9,A-E)而且至少為 8 或至多 12 個字元
  279.                     
  280.                     </span>                  <SPAN class=STYLE31>
  281.                   <TABLE width=658>
  282.                     <TBODY>
  283.                       <TR>
  284.                         <TD width=650 height="122"><SCRIPT language=javascript><!--//
  285. function doClickKeypad( pTargetID, pHiddenID, pKeyValue ){
  286. var pwdObj = document.getElementById( pTargetID );
  287. var hideObj = document.getElementById( pHiddenID );
  288. pwdObj.value = pwdObj.value + pKeyValue.toLowerCase();
  289. hideObj.value = pwdObj.value;
  290. }
  291. function doBackSpace( pTargetID, pHiddenID ){
  292. var pwdObj = document.getElementById( pTargetID );
  293. var hideObj = document.getElementById( pHiddenID );
  294. pwdObj.value = pwdObj.value.substr(0, pwdObj.value.length - 1);
  295. hideObj.value = pwdObj.value;
  296. }
  297. function doResetPasswd( pTargetID, pHiddenID ){
  298. var pwdObj = document.getElementById( pTargetID );
  299. var hideObj = document.getElementById( pHiddenID );
  300. pwdObj.value = "";
  301. hideObj.value = "";
  302. }
  303. function doGetPassScore( _pass ){
  304. var _score = 0;
  305. var _dup = 0;
  306. var _run = 0;
  307. var _hasSpecial    = false;
  308. var _hasNumber     = false;
  309. var _hasLowerCase  = false;
  310. var _hasUpperCase  = false;
  311. //check duplicated letter: infoPassDupLetter
  312. for( var i = 0; i < _pass.length; i++ ){
  313. var _tmpArr = _pass.split(_pass.substr(i,1));
  314. if( _tmpArr.length > 4 ){
  315. _dup = 0;
  316. for( var j = 0; j < _tmpArr.length; j++ ){
  317. if( _tmpArr[j].length == 0 && j > 0 )_dup++;
  318. }
  319. if( _dup >= 3 ){
  320. _score = 0;
  321. alert("密碼內太多重複的字串");
  322. break;
  323. }
  324. }else{
  325. if( _pass.charCodeAt(i) >= 33 && _pass.charCodeAt(i) <= 47 ||
  326. _pass.charCodeAt(i) >= 58 && _pass.charCodeAt(i) <= 64 ||
  327. _pass.charCodeAt(i) >= 91 && _pass.charCodeAt(i) <= 96 ||
  328. _pass.charCodeAt(i) >= 123 && _pass.charCodeAt(i) <= 126 ){
  329. // special characters
  330. _score += 10;
  331. _hasSpecial = true;
  332. }else{
  333. if( _pass.charCodeAt(i) >= 48 && _pass.charCodeAt(i) <= 57 ){
  334. // 0~9
  335. _score += 4;
  336. _hasNumber = true;
  337. }else{
  338. if( _pass.charCodeAt(i) >= 65 && _pass.charCodeAt(i) <= 90 ||
  339. _pass.charCodeAt(i) >= 97 && _pass.charCodeAt(i) <= 122 ){
  340. // A~Z || a~z
  341. _score += 7;
  342. if( _pass.charCodeAt(i) >= 65 && _pass.charCodeAt(i) <= 90 )_hasUpperCase = true;
  343. else _hasLowerCase = true;
  344. }else{
  345. // no other special characters allowed
  346. _score = 0;
  347. alert("密碼不可使用空白或非英文語系的字");
  348. break;
  349. }
  350. }
  351. }
  352. }
  353. }
  354. if( _score > 0 ){
  355. if( _hasSpecial && _hasNumber || _hasSpecial && _hasUpperCase || _hasSpecial && _hasLowerCase )_score += 10;
  356. if( _hasNumber && _hasUpperCase || _hasNumber && _hasLowerCase )_score += 8;
  357. if( _hasUpperCase && _hasLowerCase )_score += 8;
  358. }
  359. // check running characters
  360. if( _pass.length >= 4 ){
  361. for( var i = 0; i < _pass.length - 3; i++ ){
  362. // check only 0~9 && A~Z && a~z
  363. if( _pass.charCodeAt(i) >= 48 && _pass.charCodeAt(i) <= 57 ||
  364. _pass.charCodeAt(i) >= 65 && _pass.charCodeAt(i) <= 90 ||
  365. _pass.charCodeAt(i) >= 97 && _pass.charCodeAt(i) <= 122 ){
  366. _run = 0;
  367. if( Math.abs( _pass.charCodeAt(i) - _pass.charCodeAt(i+1)) == 1 &&
  368. Math.abs( _pass.charCodeAt(i+1) - _pass.charCodeAt(i+2)) == 1 &&
  369. Math.abs( _pass.charCodeAt(i+2) - _pass.charCodeAt(i+3)) == 1 ){
  370. _score = 0;
  371. alert("密碼中太多順序字串");
  372. break;
  373. }
  374. }
  375. }
  376. }
  377. return (( _score > 100 )?100:((_score < 0 )?0:_score));
  378. }
  379. function doChkPasswd(pHiddenID, pScore){
  380. var pwdObj = document.getElementById( pHiddenID );
  381. var scoreObj = document.getElementById( pScore);
  382. var _score = doGetPassScore( pwdObj.value );
  383. if( pwdObj.length == 0 ) _score = -1;
  384. else if( pwdObj.length < 8 ) _score = 0;
  385. scoreObj.value = _score;
  386. document.getElementById("divPassStrength").innerHTML = "";
  387. if( _score == 0 ){
  388. document.getElementById("divPassStrength").innerHTML = "未乎合要求";
  389. document.getElementById("divPassStrength").style.color = "#FF0000";
  390. return;   
  391. }
  392. if( _score <= 32 ){
  393. document.getElementById("divPassStrength").innerHTML = "密碼保安程度低";
  394. document.getElementById("divPassStrength").style.color = "#FF0000";
  395. }else{
  396. if( _score <= 45 ){
  397. document.getElementById("divPassStrength").innerHTML = "密碼保安程度尚可";
  398. document.getElementById("divPassStrength").style.color = "#0000FF";
  399. }else{
  400. document.getElementById("divPassStrength").innerHTML = "密碼保安程度高";
  401. document.getElementById("divPassStrength").style.color = "#00FF00";
  402. }
  403. }
  404. }
  405. //-->
  406.                   </SCRIPT>
  407.                           
  408.                           <TABLE width=632 border=0>
  409.                             <TR>                            </TR>
  410.                             <TBODY>
  411.                               <TR>
  412.                                 <TD noWrap><INPUT id=Keypad0 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','9');doChkPasswd('wPwd1','wScore')" type=button value=9>
  413.                                   <INPUT id=Button1 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','1');doChkPasswd('wPwd1','wScore')" type=button value=1>
  414.                                   <INPUT id=Button2 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','6');doChkPasswd('wPwd1','wScore')" type=button value=6>
  415.                                   <INPUT id=Button3 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','2');doChkPasswd('wPwd1','wScore')" type=button value=2>
  416.                                   <INPUT id=Button4 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','3');doChkPasswd('wPwd1','wScore')" type=button value=3>                            </TD></TR>
  417.                               <TR>
  418.                                 <TD noWrap><INPUT id=Button5 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','0');doChkPasswd('wPwd1','wScore')" type=button value=0>
  419.                                   <INPUT id=Button6 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','5');doChkPasswd('wPwd1','wScore')" type=button value=5>
  420.                                   <INPUT id=Button7 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','7');doChkPasswd('wPwd1','wScore')" type=button value=7>
  421.                                   <INPUT id=Button8 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','8');doChkPasswd('wPwd1','wScore')" type=button value=8>
  422.                                   <INPUT id=Button9 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','4');doChkPasswd('wPwd1','wScore')" type=button value=4>                            </TD></TR>
  423.                               <TR>
  424.                                 <TD height="32" noWrap><INPUT id=Button10 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','A');doChkPasswd('wPwd1','wScore')" type=button value=A>
  425.                                   <INPUT id=Button11 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','E');doChkPasswd('wPwd1','wScore')" type=button value=E>
  426.                                   <INPUT id=Button12 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','D');doChkPasswd('wPwd1','wScore')" type=button value=D>
  427.                                   <INPUT id=Button13 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','C');doChkPasswd('wPwd1','wScore')" type=button value=C>
  428.                                   <INPUT id=Button14 style="FONT-SIZE: 15px; WIDTH: 30px; HEIGHT: 30px" onClick="doClickKeypad('wPwd1a','wPwd1','B');doChkPasswd('wPwd1','wScore')" type=button value=B>
  429.                                   <input name="button2" type=button id=button style="WIDTH: 20px; HEIGHT: 20px" onClick="doBackSpace('wPwd1a','wPwd1');doChkPasswd('wPwd1','wScore')" value="<<">
  430.                                   <input name="button3" type=button id=button2 onClick="doResetPasswd('wPwd1a','wPwd1');doChkPasswd('wPwd1','wScore')" value=重設></TD>                                      
  431.                               </TR></TBODY>
  432.                           </TABLE>                          
  433.                           <SPAN id=CompareValidator1
  434.                         style="DISPLAY: none; COLOR: red">密碼確認不符</SPAN> <SPAN
  435.                         class=FormMessage id=pwdLength1
  436.                         style="DISPLAY: none; COLOR: red">密碼必須使用(0-9,A-E)而且至少為 8
  437.                             或至多 12 個字元</SPAN> </TD>
  438.                       </TR>
  439.                     </TBODY>
  440.                   </TABLE>
复制代码

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
2 [报告]
发表于 2010-09-09 14:12 |只看该作者
楼主把你的代码放在"[code]"中。要不容易出现转义了。

论坛徽章:
0
3 [报告]
发表于 2010-10-13 12:00 |只看该作者
服务器端验证了没?
因为js在前台,我可以把js删掉再提交!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP