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

📄 reg2.htm

📁 vc-mfc编程实例 很简单的东西,以后回多传自己的东西
💻 HTM
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/ritstyle.css" type="text/css" rel="stylesheet">
<link href="css/css.css" type="text/css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	left:560px;
	top:9px;
	width:20px;
	height:22px;
	z-index:1;
}
.STYLE1 {color: #000000; font-weight:normal;}
-->
</style>
</head>
<script src="js/control.js"></script>
<script src="js/language.js"></script>
<script src="js/function.js"></script>
<body>
<div id="Layer1" style="cursor:pointer;" onClick="window.external.OnClose();"></div>
<table width="600" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td id="toptd" width="600" height="45" background="img/3.JPG" onMouseDown="window.external.OnMoveWindow();">&nbsp;</td>
  </tr>
  <tr>
    <td height="474" id="mainimg">
	<div style="height:100px;"></div>
	<div style="padding-left:200px; font-size:16px; padding-bottom:20px;" class="PageStep" id="reg2_title"><!--Returning Customer Registration--></div>
	<!--<div class="PageStep STYLE1" style="padding-left:200px; float:left; padding-top:5px; width:330px; " id="reg2_fname">
	First name	</div>
	<div style="padding-top:5px;" class="tahoma11pxblack"><input type="text" id="fname" maxlength="50" /></div>
	<div class="PageStep STYLE1" style="padding-left:200px; float:left;  padding-top:5px; width:330px;" id="reg2_lname">
	Last name	</div>
	<div style="padding-top:5px;" class="tahoma11pxblack"><input type="text" id="lname" maxlength="50" /></div>
	<div class="PageStep STYLE1" style="padding-left:200px; float:left;padding-top:5px;width:330px; " id="reg2_email">
	Email Address	</div>
	<div style="padding-top:5px;" class="tahoma11pxblack"><input type="text" id="email" maxlength="50" /></div>-->
	<div class="PageStep STYLE1" style="padding-left:200px;padding-top:5px; width:530px;" id="reg2_info1"><!--You can get back the former registration information by entering Registration ID. You can also modify and update the information.--></div>
	<div class="PageStep STYLE1" style="padding-left:200px; float:left;padding-top:25px; width:330px;" id="reg2_pid">
	<!--Product Registion ID-->	</div>
	<div style="padding-top:25px;" class="tahoma11pxblack"><input type="text" id="pid" maxlength="50"  /></div>
	<div class="PageStep STYLE1" style="padding-left:350px; float:left;padding-top:5px; " >
	<a href="javascript:openurl();"  >
	<span id="reg2_getregid">
	<!--Retrieve your Registration ID-->
	</span>
	</a>
		</div>
	<div style="padding-left:360px; padding-top:160px;">
	 <button cstyle="rit" onClick="history.back();" id="previous">Previous</button>&nbsp;&nbsp;<button cstyle="rit" onClick="btn_submit();" id="submit">Submit</button>
	 </div>
	</td>
  </tr>
</table>
</body>
<script>
var flag = true;
document.body.onload=function()
{
	//alert(window.external.GetProductName());
	applyButton();
	showui();
	imgfile = getbgimg("1");//"url(img/"+eval('window.external.GetProductID()+"1.jpg"')+")";
	$("mainimg").style.backgroundImage =imgfile;
	$("toptd").style.backgroundImage ="url(img/3"+langid+".jpg)";
	//getinfo();
}
function openurl()
{
	
	var myurl = "http://www.farstone.com/tools/redir.asp?id=RETRIEVEID&lang=";
	myurl+="0x"+window.external.GetLanguageID().toString(16);
	myurl+="&type=ESD&lefttime=0";
	//alert(myurl);
	window.open(myurl);
}
function getinfo()
{
	// var result="";
//	 if(window.external.GetRegisterInfo()!="")
//	 {
//	 			result=window.external.GetRegisterInfo();
//	 		
//	 
//	 //alert(result);
//		 var userobj = analyseXml(result);
//		 //alert(userobj.usertype);
//		 if(userobj.FirstName!=null)
//		 {
//			$("fname").value=userobj.FirstName;
//		 }
//		 if(userobj.LastName!=null)
//		 {
//			 $("lname").value=userobj.LastName;
//		 }
//		 if(userobj.email2!=null)
//		 {
//			$("email").value=userobj.email2;
//		 }
//		 else if(userobj.email!=null)
//		 {
//			$("email").value=userobj.email;
//		 }
//	
//	 }
}
function showui()
{
	$("reg2_title").innerHTML=GS("reg2_title");
	$("reg2_info1").innerHTML=GS("reg2_info1").replace(/\$pname\$/g,window.external.GetProductName());
	$("reg2_getregid").innerHTML=GS("reg2_getregid");
	//$("reg2_email").innerHTML=GS("reg2_email");
	$("reg2_pid").innerHTML=GS("reg2_pid");
	$("previous").setValue(GS("previous"));
	$("submit").setValue(GS("submit"));
	
}
function btn_submit()
{
	//var bOnline = window.external.IsOnline();
	if($("pid").value=="")
	{
		RIT_popMsg('',264,180,'ok',GS('regid_error'),'alert');
	    return;
	}
	//if (bOnline){
		var callpage="http://www.farstone.com/support/user-profile/api-product-userlogin.php?registerID="+$("pid").value;
		 var XMLSender = new ActiveXObject("Microsoft.XMLHTTP");
		 XMLSender.Open("GET",callpage,false);
		 try{
			 XMLSender.send();
			 var result=XMLSender.responseText;
		}catch (e){
			RIT_popMsg('',264,180,'ok',GS('net_error'),'info');
			return;
		}
		  if(result=="no")
		 {
			 RIT_popMsg('',264,180,'ok',GS('login_error'),'alert');
			 return;
		 }
		 else if(result=="yes")
		 {
			 
			 document.location="reg3.htm?regid="+$("pid").value;
		 }
		 else
		 {
			RIT_popMsg('',264,180,'ok',GS('net_error'),'info');
			return;
		 }
	//}else{
	//		RIT_popMsg('',264,180,'ok',GS('net_error'),'info');
	//		return;
	//}
}
	
	


</script>
</html>

⌨️ 快捷键说明

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