📄 loginmenu.js
字号:
function WM_readCookie(name)
{
if(document.cookie == "")
return "";
else
return WM_getCookieValue(name);
}
function WM_getCookieValue(name)
{
var firstChar,lastChar;
var theBigCookie = document.cookie;
firstChar = theBigCookie.indexOf(name);
if(firstChar != -1)
{
firstChar +=name.length + 1;
lastChar = theBigCookie.indexOf(';', firstChar);
if(lastChar == -1) lastChar = theBigCookie.length;
return theBigCookie.substring(firstChar, lastChar);
}
else
{
return "";
}
}
function DecodeCookie(str)
{
var strArr;
var strRtn="";
strArr=str.split("a");
for (var i=strArr.length-1;i>=0;i--)
strRtn+=String.fromCharCode(eval(strArr[i]));
return strRtn;
}
var t1;
var t2;
var t3;
var t4;
t1= WM_readCookie("member");
t4=WM_readCookie("mem_name");
t3=WM_readCookie("agent");
if (t4!="")
{
t2=unescape(t4)
}
document.write("<center><table width=760 height=32 border=0 cellpadding=0 cellspacing=0 bgcolor=#227E95><tr>");
if ( t1 == "")
{
document.write("<td align=right><img src=./img/newtopsys_2.gif width=11 height=11 hspace=6 align=absmiddle>");
document.write("<a href=/abc/customer/Login.jsp target=_self style=color:white;text-decoration:none;font-size:12px>会员登录</a>");
document.write("<img src=./img/newtopsys_1.gif width=11 height=11 hspace=6 align=absmiddle>");
document.write("<a href=/abc/customer/Register.jsp style=color:white;text-decoration:none;font-size:12px>新用户注册</a> <img src=./img/newtopsys_3.gif width=11");
document.write(" height=11 hspace=6 align=absmiddle><a href=/abc/manager/Manlogin.jsp style=color:white;text-decoration:none;font-size:12px>管理员登陆</a> <img");
document.write(" src=./img/newtopsys_4.gif width=11 height=11 hspace=6 align=absmiddle><a href=/abc/CustomerServlet/?a=getone");
document.write(" style=color:white;text-decoration:none;font-size:12px>修改信息</a> <img src=./img/newtopsys_5.gif width=11 height=11 hspace=6 align=absmiddle><a");
document.write(" href=/abc/customer/Mima.jsp style=color:white;text-decoration:none;font-size:12px>查询密码</a><img src=./img/newtopsys_5.gif width=11 height=11 hspace=6 align=absmiddle><a");
document.write(" href=/abc/order/ShowOrder.jsp style=color:white;text-decoration:none;font-size:12px>我的定单</a> </td>");
}
else
{
document.write("<td align=right><font color=#FFFFFF style=font-size:12px>欢迎您,"+t2+"!</font> ");
document.write("<img src=./img/newtopsys_2.gif width=11 height=11 hspace=7 align=absmiddle>");
document.write("<a href=../customer/Logout.jsp target=_self style=color:white;text-decoration:none;font-size:12px>退出登录</a>");
document.write(" <img src=./img/newtopsys_1.gif width=11 height=11 hspace=7 align=absmiddle>");
document.write("<a href=http://www.elong.com/member/order_modify.asp style=color:white;text-decoration:none;font-size:12px>修改资料</a> <img src=.//img/newtopsys_3.gif width=11");
document.write("height=11 hspace=7 align=absmiddle><a href=http://www.elong.com/member/order_management.asp style=color:white;text-decoration:none;font-size:12px>预订记录</a> <img");
document.write(" src=./img/newtopsys_4.gif width=11 height=11 hspace=7 align=absmiddle><a href=http://www.elong.com/member/order_query.asp ");
document.write(" style=color:white;text-decoration:none;font-size:12px>积分查询</a> <img");
document.write(" src=./img/newtopsys_4.gif width=11 height=11 hspace=7 align=absmiddle><a href=http://www.elong.com/member/elstraser.asp");
document.write(" style=color:white;text-decoration:none;font-size:12px>客户服务</a> <img src=.//img/newtopsys_5.gif width=11 height=11 hspace=7 align=absmiddle><a");
document.write(" href=http://faq.elong.com style=color:white;text-decoration:none;font-size:12px>常见问题</a> </td>");
}
document.write("</tr></table></center>");
//-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -