调味酱大全:请问如何使放在网站下的论坛自动登陆?

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 22:35:05
现在在网站上面链了一个论坛,而网站本身就是需要登陆才能访问的,怎么样可以使得用户在需要点击进入论坛的时候自动用进入网站的用户名和密码登陆该论坛(假设用户名是12345678,密码是12345678),使得用户不用输入两次用户名和密码。
附目标论坛登陆代码(会的话,请帮忙修改)
<SCRIPT language=JavaScript>
function Check(theform)
{
LoginLb = document.RegForm.LoginLb.value ;

if (theform.Account.value=="")
{
if (LoginLb == "xs")
{
alert("请输入用户名!");
}
theform.Account.focus();
return (false);
}
if (theform.PassWord.value == "")
{
alert("请输入口令!");
theform.PassWord.focus();
return (false);
}
if (theform.LoginLb.value =='xs' ){
theform.action ='JwXs/LoginCheck.asp';
}
theform.submit();
}

function SysQuit()
{
top.window.close();
}
function ChangeUserType()
{
//alert(document.all("AccountType").src);
if (document.all("LoginLb").value=='xs' )
{
document.all("AccountType").src = "images/BgUserName.gif";
document.all("wjmm").style.display = "";
}
else
{
document.all("AccountType").src = "images/BgUserName.gif";
document.all("wjmm").style.display = "none";
}
}
function js_callpage(htmlurl) {
var newwin=window.open(htmlurl,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=" + (screen.availheight / 2 - 160 ) + " ,left=" + (screen.availwidth / 2 - 200 ) + ",width=400,height=320");
}
function js_callpage00(htmlurl) {
var newwin=window.open(htmlurl,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=" + (screen.availheight / 2 - 60 ) + " ,left=" + (screen.availwidth / 2 - 130 ) + ",width=272,height=130");
}
<!-- Begin
</SCRIPT>
</head>

你的意思是让论坛自动填上用户名和密码,然后用户直接确定就行?
这个要用到调用COOKIE,不知道能不能实现,难度比较大

你可以考虑把论坛和网站整合,实现同登进登出