我开通了QQ,想在首页加添加邮箱登陆窗口,按的帮助文件提示:复制下面代码,粘贴到您的网页<body>和</body>的之间的任意位置,腾讯登录入口将在相应的网页位置出现。
您还可通过调整<style>和</style>之间的代码改变来表现适应网站。
复制代码
1.<style>
2..bizmail_loginpanel{font-size:12px;width:300px;height:auto;border:1px solid #cccccc;background:#ffffff;}
3..bizmail_LoginBox{padding:10px 15px;}
4..bizmail_loginpanel h3{padding-bottom:5px;margin:0 0 5px 0;border-bottom:1px solid #cccccc;font-size:14px;}
5..bizmail_loginpanel form{margin:0;padding:0;}
6..bizmail_{font-size:12px;width:100px;height:20px;margin:0 2px;border:1px solid #C3C3C3;border-color:#7C7C7C #C3C3C3 #C3C3C3 #9A9A9A;}
7..bizmail_loginpanel .bizmail_column{height:28px;}
8..bizmail_loginpanel .bizmail_column label{display:block;float:left;width:36px;height:24px;line-height:24px;font-size:12px;}
9..bizmail_loginpanel .bizmail_column .bizmail_inputArea{float:left;width:230px;}
10..bizmail_loginpanel .bizmail_column span{font-size:12px;word-wrap:break-word;margin-left: 2px;line-height:200%;}
11..bizmail_loginpanel .bizmail_SubmitArea{margin-left:36px;clear:both;}
12..bizmail_loginpanel .bizmail_SubmitArea a{font-size:12px;margin-left:5px;}
13..bizmail_loginpanel select{width:110px;height:20px;margin:0 2px;}
14.</style>
15.<script type="text/javascript" src="exmail.qq/zh_CN/htmledition/js_biz/outerlogin.js" charset="gb18030"></script>
16.<script type="text/javascript">
17.writeLoginPanel({domainlist:"jqbyd.tk", mode:"vertical"});
18.</script>
登陆口
2007-07-18 15:48
<TABLE width="100%" align=center>
<FORM id=logon name=logon
action=mail.chbin/cgi-bin/wmail method=post
target=_blank ;>
<TBODY>
<TR>
<TD width=163 bgColor=#ffffff height=43>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD width="39%">
<DIV align=center>用 名:</DIV></TD>
<TD width="61%"><INPUT size=12
name=username></TD></TR>
<TR>
<TD>
<DIV align=center><INPUT type=hidden
value=SMPREF_JS_OFF name=js_autodetect_results> @
</DIV></TD>
<TD>
<DIV align=center><INPUT size=15 value=chbin
name=domain> </DIV></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD bgColor=#ffffff height=46>
<TABLE cellSpacing=0 cellPadding=0 width="95%"
align=center border=0>
<TBODY>
<TR>
<TD width="26%">密 码:</TD>
<TD width="74%"><INPUT type=password size=12
name=password></TD></TR>
<TR>
<TD height=22> </TD>
<TD><INPUT type=submit value=登录邮局 name=Submit></TD></TR></TBODY></TABLE></TD></TR></FORM></TBODY></TABLE>
你要的代码,你要知道接口 ,这个邮箱的接口就是mail.chbin/cgi-bin/wmail这个cgi
例如下代码 根据情况修改域名后嵌入到网站的相应位置即可:
黄字体内容为注释!
<form name="form_logon" action="h2008/i" method="POST"> '根据自己的域名修改地址
<td align="center" valign="top" nowrap><table width="188" height="100" border="0" cellpadding="0" cellspacing="0" bgcolor="#D4D0C8">
<tr bgcolor="#F0F0F0">
<td width="35%" align="left" bgcolor="#F0F0F0"><span class="style6"> </span></td>
<td width="65%" height="12" align="left" bgcolor="#F0F0F0"> </td>
</tr>
<tr bgcolor="#F0F0F0">
<td height="13" align="left" bgcolor="#F0F0F0"><span class="style6"> 用户名:</span></td>
<td width="65%" height="12" align="left"><input type="text" id="username2" name="username" size="16" maxlength="64" value="">
<input name="logindomain" type="hidden" id="logindomain3" value="tech2008" size="20" maxlength="64"></td> '修改为自己的域名
</tr>
<tr bgcolor="#F0F0F0">
<td height="25" align="left"><span class="style6"> 密 码:</span></td>
qq用户名
<td height="25" align="left"><input type="password" id="password3" name="password" size="16" maxlength="16" value=""></td>
</tr>
<tr bgcolor="#F0F0F0">
<td height="25" bgcolor="#F0F0F0"> </td>
<td height="25" align="left" bgcolor="#F0F0F0"><input type="submit" value=" 登 陆 " name="do.login" onClick="return fn_CheckParameters(this.form);" id="do.login2"></td>
</tr>
</table>
</form>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎进入企业邮局系统</title>
<link href="css/em.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT>
<!--
var AlertInput = "请输入:\n\n";
function Login(form){
var mesg = "";
if(form.name.value == "") mesg += "用户\n";
if(form.passwd.value == "") mesg += "密码\n";
if(mesg != ""){
mesg = AlertInput + mesg;
alert(mesg);
return false;
}
if (form.language.value !="-") form.Lang.value = form.language.value;
form.action = "login.php?Cmd=login";
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论