登录邮箱功能!

cyyjm 2011-08-01 09:52:18
如何做到像hao123等网站那样,有一个登录各种邮箱的功能?有没有代码?给我参考一下。谢谢!
...全文
112 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
挨踢直男 2011-08-01
  • 打赏
  • 举报
回复
var MailLogin = {
mailCache: [],
sendMail: function() {
var B = G("hao_mail_username").value,
D = G("hao_mail_passwd").value,
F = G("hao_mail_options"),
A = document.mail,
_ = F.selectedIndex,
I = Config.MailConfig[_],
H = {
u: B,
p: D
};
if (I.val == 0) {
alert("\u60a8\u6ca1\u6709\u9009\u62e9\u90ae\u7bb1\uff01");
return
}
if (trim(H.u) == "") {
alert("\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff01");
return
}
if (trim(H.p) == "") {
alert("\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01");
return
}
if (this.mailCache.index != _) {
this.mailCache.index = _;
for (var J = 0, E = this.mailCache.length; J < E; J++) A.removeChild(this.mailCache[J]);
this.mailCache = []
}
A.action = I.action;
for (J in I.params) {
var $ = Ci(J, format(I.params[J], H));
this.mailCache.push($);
A.appendChild($)
}
G("hao_mail_username").value = "";
G("hao_mail_passwd").value = "";
A.submit();
G("hao_mail_username").value = B;
var C = G("hao_mail_options").selectedIndex;
UserTrack.send({
level: "1",
page: "index",
type: "mail",
index: C
})
},
change: function(_) {
var $ = Config.MailConfig[_.selectedIndex];
if ($.type == "link") {
UserTrack.send({
level: "1",
page: "index",
type: "mail",
index: _.selectedIndex
});
window.open($.action);
_.selectedIndex = 13
}
}
}


你自己去分析一下里面的js,从这个对象里入手,我在hao123里面找出来的
http://www.hao123.com/js/main_201107261200.js

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧