⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changepassword.htm

📁 vc-mfc编程实例 很简单的东西,以后回多传自己的东西
💻 HTM
字号:
<link href="css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#Layer1_close {
	position:absolute;
	left:238px;
	top:7px;
	width:18px;
	height:17px;
	z-index:4;
}
</style>
<script language="javascript" src="js/comm.js" type="text/javascript"></script>
<script language="javascript">
// import js document
	_import("function");
	_import("language");
	_import("langSet");
	_import("webmenuevent");
	_import("control");
</script>
<script language="javascript">
isPassword = Request("para");

function showui(){
	$("pic").style.backgroundImage = 'url('+GS("Pic_1")+')';
	$("cpwd_label_1").innerHTML = GS("cpwd_label_1");
	$("cpwd_label_2").innerHTML = GS("cpwd_label_2");
	$("cpwd_label_3").innerHTML = GS("cpwd_label_3");
	$("changeYes").src = GS("deleteConfirm_Pic_1");
	$("changeNo").src = GS("deleteConfirm_Pic_2");
}
</script>
<link href="css/main.css" rel="stylesheet" type="text/css">
<body style="overflow:hidden;" onLoad="Init();">
<div id="Layer1_close" style="display:none;">
<div style="cursor:hand;" onClick="window.external.OnOK();" onMouseOver="changeSubImgTo(this,'pic/close_red.gif')" onMouseOut="changeSubImgTo(this,'pic/close_blue.gif')"><img src="pic/close_blue.gif" ondragstart="changeSubImgTo(this.parentNode,'pic/close_blue.gif');return false;" width="16" height="16"></div></div>
<table width="350" border="0" cellspacing="0" cellpadding="0" id="boxwidth">
  <tr>
    <td background="images/alert_msg_r1_c5.jpg" onMouseDown="moveWindow();"><table width="165" height="29" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="165" style="background-repeat:no-repeat;" id="pic">&nbsp;</td>
      </tr>
    </table></td>
    <td align="right" background="images/alert_msg_r1_c5.jpg" onMouseDown="moveWindow();"><table width="30%" height="29" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td style="background-image:url(images/alert_msg_top_right.jpg); background-repeat:no-repeat; background-position:right;">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><img src="images/alert_msg_r4_c1.jpg" width="9" height="6" /></td>
        <td><img src="" width="1" height="1" alt="" /></td>
        <td align="right" valign="top"><img src="images/alert_msg_r4_c11.jpg" width="9" height="6" /></td>
      </tr>
    </table>
        <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0" id="boxheight">
          <tr>
            <td width="10" align="left" valign="bottom" background="images/alert_msg_r5_c1.jpg" style="background-position:left; background-repeat:repeat-y;">&nbsp;</td>
            <td height="146" style="background-repeat:repeat-x; background-position:bottom;">
			<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" id="msgTextTable">
                <tr height="30" id="isPWD">
                  <td width="100" height="40" align="right" class="arial11black" id="cpwd_label_1" style="padding-right:5px;"></td>
                  <td height="40" class="arial12pinkbold" id="fontcolortd" style="padding-top:3px;"><input name="textfield" type="password" id="pwd_old" size="35" maxlength="8" onKeyDown="if(event.keyCode==13)returnInfo(true);"></td>
                </tr>
                <tr height="30">
                  <td width="100" align="right" class="arial11black" id="cpwd_label_2" style="padding-right:5px;"></td>
                  <td class="arial12pinkbold" id="fontcolortd" style="padding-top:3px;"><input name="textfield" type="password" id="pwd_new" size="35" maxlength="8" onKeyDown="if(event.keyCode==13)returnInfo(true);"></td>
                </tr>
                <tr height="30">
                  <td width="100" height="40" align="right" class="arial11black" id="cpwd_label_3" style="padding-right:5px;"></td>
                  <td height="40" class="arial12pinkbold" id="fontcolortd" style="padding-top:3px;"><input name="textfield" type="password" id="pwd_cfm" size="35" maxlength="8" onKeyDown="if(event.keyCode==13)returnInfo(true);"></td>
                </tr>
                <tr> 
                  <td colspan="2" align="center" style="padding-top:10px;">
				  <div style="height:21px; display:none;" class="Arial12black" id="button_ok">
				  <a id="okButtonFocus" href="#" onClick="window.external.OnOK();"><img style="border:1px solid #FFFFFF;" src="images/alert_botton_ok.jpg" width="89" height="21" border="0" /></a>				  </div>
				  <div style="height:21px;" class="Arial12black"  id="button_yesorno">
				  <span><a id="yesNoButtonFocus" href="#" onClick="returnInfo(true);"><img style="border:1px solid #FFFFFF;" src="images/alert_botton_yes.jpg" width="47" height="21" border="0" id="changeYes" /></a></span>&nbsp;&nbsp;&nbsp;
				  <span><a id="yesNoButtonFocus2" href="#" onClick="returnInfo(false);"><img style="border:1px solid #FFFFFF;" src="images/alert_botton_no.jpg" width="43" height="21" border="0" id="changeNo" /></a></span> </div>
				  
				  <div style="height:21px; display:none;" class="Arial12black"  id="button_okcancel">
				  <span  onClick="setSD('yes')"><a id="okCancelButtonFocus" href="#" onClick="setSD('yes')"><img style="border:1px solid #FFFFFF;" src="images/alert_botton_ok_small.jpg" width="47" height="21" border="0" /></a></span>&nbsp;&nbsp;&nbsp;
				  <span  onClick="setSD('no')"><a id="okCancelButtonFocus2" href="#" onClick="setSD('no')"><img style="border:1px solid #FFFFFF;" src="images/cancelbutton.jpg" width="48" height="21" border="0" /></a></span> </div>
				  
					<div style="height:21px; display:none;" class="Arial12black"  id="button_tryagain">
				  <span  onClick="setSD('yes')"><a id="tryagainButtonFocus" href="#" onClick="setSD('yes')"><img style="border:1px solid #FFFFFF;" src="images/tryagainbutton.jpg" width="66" height="21" border="0" /></a></span>&nbsp;&nbsp;&nbsp;
				  <span  onClick="setSD('no')"><a id="tryagainButtonFocus2" href="#" onClick="setSD('no')"><img style="border:1px solid #FFFFFF;" src="images/cancelbutton.jpg" width="48" height="21" border="0" /></a></span> </div>				  </td>
                </tr>
            </table></td>
            <td width="10" align="right" valign="bottom" background="images/alert_msg_r5_c10.jpg" style="background-position:right; background-repeat:repeat-y;">&nbsp;</td>
          </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="5%" valign="top" background="images/alert_msg_bottom_center.jpg" style="background-position:top; background-repeat:repeat-x;"><img src="images/alert_msg_bottom_left.jpg" width="9" height="12" /></td>
            <td width="90%" background="images/alert_msg_bottom_center.jpg" style="background-position:top; background-repeat:repeat-x;">&nbsp;</td>
            <td width="5%" align="right" valign="top" background="images/alert_msg_bottom_center.jpg" style="background-position:top; background-repeat:repeat-x;"><img src="images/alert_msg_bottom_right.jpg" width="9" height="12" /></td>
          </tr>
      </table></td>
  </tr>
</table>
<script language="jscript">
var isMove=true;
var leftButtonId="";
var rightButtonId="";
function moveWindow() {
	if (isMove) {
		window.external.OnMoveWindow();
	}
}
document.body.onload=function() {
	if (isPassword == "0"){
		pwd_old.disabled = true;
		pwd_new.focus();
		isPWD.style.display = 'none';
	}
	showui();
}
function testCode(id) {
	if(id==32) { return false; }
	if (id==37) {
		var leftbtobj=document.getElementById(leftButtonId);
		if (leftbtobj!=null) {
			leftbtobj.focus();
		}
	}
	else if(id==39) {
		var leftbtobj=document.getElementById(rightButtonId);
		if (leftbtobj!=null) {
			leftbtobj.focus();
		}
	}
}
function setSD(str) { 	window.external.SetStaticData(str);window.external.OnOK(); }

function changeSubImgTo(parentNodeObj,url)
{
	var childNodesArray=parentNodeObj.childNodes;
	if (childNodesArray[0].src!=url)
	{
		childNodesArray[0].src=url;
	}
}

function returnInfo(InfoValue){
	if (InfoValue){
		if (pwd_new.value != pwd_cfm.value){
			RIT_popMsg('',264,180,'Alert',GS("cpwd_alert_1"),'alert');
			return false;
		}
		if (pwd_old.value){
			val1 = pwd_old.value;
		}else{
			val1 = '';
		}
		if (pwd_new.value){
			val2 = pwd_new.value;
		}else{
			val2 = '';
		}
		window.external.SetStaticData(val1 + "{VD}" + val2);
		window.external.OnOK();
	}else{
		//alert('0');
		window.external.SetStaticData('');
		window.external.OnOK();
	}
}

function chkboxAction(chkboxObj){
	if (eval(chkboxObj + ".checked")){
		eval(chkboxObj + ".setChecked(false);");
	}else{
		eval(chkboxObj + ".setChecked(true);");
	}
}
</script>
</body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -