DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> JavaScript綜合知識 >> Javasript實現查看隱藏的密碼框明文代碼
Javasript實現查看隱藏的密碼框明文代碼
編輯:JavaScript綜合知識     

 <HTML><HEAD><TITLE>密碼的隱藏與顯示</TITLE>

</HEAD> <BODY bgColor=#fef4d9><BR><BR> <CENTER>密碼的隱藏與顯示</CENTER><BR> <CENTER> <TABLE borderColor=#CC0000 border=5 borderlight="green">   <TBODY>   <TR>     <TD align=middle><div align="center">效果顯示</div></TD>   </TR>   <TR>     <TD align=middle>       <FORM name=forms action="" method=post><SPAN id=box>       <INPUT type=password value=523654 name=password></SPAN> <SPAN id=click><A href="javascript:ps()">顯示密碼</A></SPAN>       <SCRIPT language=JavaScript> function ps(){ if (this.forms.password.type="password") box.innerHTML="<input type="html" name="password" size="20" value="+this.forms.password.value+">"; click.innerHTML="<a href="javascript:txt()">隱藏密碼</a>"} function txt(){ if (this.forms.password.type="text") box.innerHTML="<input type="password" name="password" size="20" value="+this.forms.password.value+">"; click.innerHTML="<a href="javascript:ps()">顯示密碼</a>"} </SCRIPT> </FORM></TD></TR></TBODY></TABLE></CENTER> </BODY> </HTML></td>  </tr> </table>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved