腳本源代碼:
<head>
<title>顯示、隱藏密碼</title>
<style>
body,input{font:menu}
</style>
</head>
<body>
<form method="POST" action="addcheck.asp" name="forms">
<span id=box><input type="password" name="password" size="20" value="www.cnwebshow.com"></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>
<script>
function help(){
title="顯示、隱藏密碼"
time="23:17 2002-8-17"
tips="顯示、隱藏input中的密碼,動態(tài)改為input的type值。在提示注冊時就不用來兩個輸入框了:)"
info="w"
alert(title+"n("+time+")nn"+tips+"nn"+info)}
</script>
</body>
2021-07-09
2021-07-08
2021-07-08
2021-07-08
2021-07-08
2021-07-08
2021-07-07
2021-07-07
2021-07-07
2021-07-07
2021-07-07
2021-07-06
2021-07-06
2021-07-06
工作態(tài)度怎么寫 具有穩(wěn)定的工作心態(tài)
2021-07-06
該文觀點(diǎn)僅代表作者本人,查查吧平臺系信息發(fā)布平臺,僅提供信息存儲空間服務(wù),不承擔(dān)相關(guān)法律責(zé)任。圖片涉及侵權(quán)行為,請發(fā)送郵件至85868317@qq.com舉報(bào),一經(jīng)查實(shí),本站將立刻刪除。