<html>
<head>
<title>修改密码</title>
<script>
function passwrod()
{
var txt1=document.getElementById("Text1").value;
var txt2=document.getElementById("Text2").value;
if(txt1.charAt(txt2.length-1)!=txt2.charAt(txt2.length-1))
{
document.getElementById("table1").style.display= "block";
}
else
{
if(txt2==txt1.substring(0,txt2.length))
{
document.getElementById("table1").style.display= "none";
}
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
新 密 码:<input id="Text1" type="password"/></br>
确认密码:<input id="Text2" type="password" onkeyup ="passwrod()"/>
<table id="table1" style="display:none;"><tr><td>新密码和确认密码输入不一致</td></tr></table>
</div>
</form>
</body>
</html>
<head>
<title>修改密码</title>
<script>
function passwrod()
{
var txt1=document.getElementById("Text1").value;
var txt2=document.getElementById("Text2").value;
if(txt1.charAt(txt2.length-1)!=txt2.charAt(txt2.length-1))
{
document.getElementById("table1").style.display= "block";
}
else
{
if(txt2==txt1.substring(0,txt2.length))
{
document.getElementById("table1").style.display= "none";
}
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
新 密 码:<input id="Text1" type="password"/></br>
确认密码:<input id="Text2" type="password" onkeyup ="passwrod()"/>
<table id="table1" style="display:none;"><tr><td>新密码和确认密码输入不一致</td></tr></table>
</div>
</form>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货