日期:2014-05-17 浏览次数:20536 次
<script language="JavaScript" type="text/javascript"> function addListener(element,e,fn){ if(element.addEventListener){ element.addEventListener(e,fn,false); } else { element.attachEvent("on" + e,fn); } } var txt_oldPsw = document.getElementById("txt_oldPsw"); addListener(txt_oldPsw,"click",function(){txt_oldPsw.value = "";}) addListener(txt_oldPsw,"blur",function(){txt_oldPsw.value = "old Password";}) var txt_newPsw = document.getElementById("txt_newPsw"); addListener(txt_newPsw,"click",function(){txt_newPsw.value = "";}) addListener(txt_newPsw,"blur",function(){txt_newPsw.value = "new Password";}) var txt_reenter = document.getElementById("txt_reenter"); addListener(txt_reenter,"click",function(){txt_reenter.value = "";}) addListener(txt_reenter,"blur",function(){txt_reenter.value = "re-enter new password";}) </script>
echo "<tr><td><input class='txt_style' id='txt_oldPsw' style='font-size:10.5pt; color:#6b6b6b' type='text' name='txt_oldPsw' value='old password' $psw_disable></td></tr>"; echo "<tr><td><input class='txt_style' id='txt_newPsw' style='font-size:10.5pt; color:#6b6b6b' type='text' name='txt_newPsw' value='new password' $psw_disable></td></tr>"; echo "<tr><td><input class='txt_style' id='txt_reenter' style='font-size:10.5pt; color:#6b6b6b' type='text' name='txt_reenter' value='re-enter new password' $psw_disable></td></tr>"; echo "<tr><td><input class='btn_active' type='submit' name='$btn_active_define' value='$btn_active_text'></td></tr>";