如何能在我的网页上添加别的网站的登陆框(急!在线等!愿送80分)

wangtianyang 2003-10-25 08:02:44
我最近正在做一个个人主页,我的想法是在我的主页上加入一个登陆筐
例如:在我的网页上输入用户名和密码后,能够登陆到我在chinaren.com上的校友录。一直在线等,急。
...全文
79 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangtianyang 2003-12-11
  • 打赏
  • 举报
回复
我是新手 谁愿帮我吗?请把你的QQ号告诉我 不知是这么发帖的吗
pepos 2003-10-27
  • 打赏
  • 举报
回复
一般都会有这段代码
<form action="" ....>
....
</form>

把这段代码拷下来。然后文本框的名字跟他的一样就可以了。
wangtianyang 2003-10-25
  • 打赏
  • 举报
回复
他说出现fmsh错误
还不行呀
咋办呢
zrla 2003-10-25
  • 打赏
  • 举报
回复
<form name=FM action="http://login.chinaren.com/zhs/servlet/Login" method=POST>
<input type=hidden name=url value="http://profile.chinaren.com/zhs/loginok2.jsp?url=http://alumni.chinaren.com/index.jsp">
<input type=hidden name=group value="www">
<tr>
<td width=24> </td>
<td width=163>
<font color=#000010>用户名: </font> <input name=username type=text class=input3 style="width:100px;height:20px"><br>
<font color=#000010>密 码: </font> <input name=password type=password class=input3 style="width:100px;height:20px">
</td>
<td width=207>
<script>
if (fmsh)
document.write("<input type=radio name=us checked value=''> <font color=#000010>ChinaRen用户</font> <input type=radio name=us value='yes'> <font color=#000010>Sohu用户</font><br>");
else
document.write("<input type=radio name=us value=''> <font color=#000010>ChinaRen用户</font> <input type=radio name=us checked value='yes'> <font color=#000010>Sohu用户</font><br>");
</script>
 <input name=imageField type=image src=http://images.sohu.com/cs/sms/alumni3/images/cr_b11.gif width=35 height=18 border=0>
<a href=http://profile.chinaren.com/zhs/register.jsp?group=alumni><img src=http://images.sohu.com/cs/sms/alumni3/images/cr_b12.gif width=35 height=18 border=0></a>  
<a href=http://help.sohu.com/help_2.php?fatherid=3 target=_blank><img src=http://images.sohu.com/cs/sms/alumni3/images/cr_b13.gif width=59 height=18 border=0></a>
</td>
</tr>
<tr>
<td height=20> </td>
<td colspan=2 class=cla2><img src=http://images.sohu.com/cs/sms/alumni/roster/hot.gif> <a href=http://images.sohu.com/cs/sms/alumni3/ad/ad_online.htm target=_blank class=cla2>校友录新增在线查看功能</a></td>
</tr>
</form>
把上面的代码加到你的页面里就可以了!
haoyue0603 2003-10-25
  • 打赏
  • 举报
回复
把他的登陆页面的相关源代码复制下来就ok了。至于登陆框的样式。你还可以自己设计啊。:)
liuzxit 2003-10-25
  • 打赏
  • 举报
回复
看看它的登錄畫面的原碼﹐拷貝下來不就OK了嘛


<form name=FM action="http://login.chinaren.com/zhs/servlet/Login" onSubmit="if(!ChkLogin())return false;" method=POST>
<input type=hidden name=url value="http://profile.chinaren.com/zhs/loginok2.jsp?url=http://alumni.chinaren.com/index.jsp">
<input type=hidden name=group value="www">
<tr>
<td width=24> </td>
<td width=163>
<font color=#000010>用戶名: </font> <input name=username type=text class=input3 style="width:100px;height:20px"><br>
<font color=#000010>密 碼: </font> <input name=password type=password class=input3 style="width:100px;height:20px">
</td>
<td width=207>
<script>
if (fmsh)
document.write("<input type=radio name=us checked value=''> <font color=#000010>ChinaRen用戶</font> <input type=radio name=us value='yes'> <font color=#000010>Sohu用戶</font><br>");
else
document.write("<input type=radio name=us value=''> <font color=#000010>ChinaRen用戶</font> <input type=radio name=us checked value='yes'> <font color=#000010>Sohu用戶</font><br>");
</script>
 <input name=imageField type=image src=http://images.sohu.com/cs/sms/alumni3/images/cr_b11.gif width=35 height=18 border=0>
<a href=http://profile.chinaren.com/zhs/register.jsp?group=alumni><img src=http://images.sohu.com/cs/sms/alumni3/images/cr_b12.gif width=35 height=18 border=0></a>
<a href=http://help.sohu.com/help_2.php?fatherid=3 target=_blank><img src=http://images.sohu.com/cs/sms/alumni3/images/cr_b13.gif width=59 height=18 border=0></a>
</td>
</tr>
<tr>
<td height=20> </td>
<td colspan=2 class=cla2><img src=http://images.sohu.com/cs/sms/alumni/roster/hot.gif> <a href=http://images.sohu.com/cs/sms/alumni3/ad/ad_online.htm target=_blank class=cla2>校友錄新增在線查看功能</a></td>
</tr>
</form>
李睿_Lee 2003-10-25
  • 打赏
  • 举报
回复
这个绝对能用.我试过的.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>ChinaRen 个人信息 登录</title>
</head>
<body topmargin=0 bgcolor=white><center>
<table width=21% cellspacing=4 cellpadding=1>
<form NAME=FM action="http://profile.chinaren.com/zhs/servlet/Login" ONSUBMIT="if(!ChkLogin())return false;if(document.FM.wp.checked)document.FM.url.value+='&wp=1';" METHOD=POST target="_top">
<INPUT TYPE=HIDDEN NAME=url VALUE="http://log2.chinaren.com/zhs/loginok2.jsp?nomail=yes&url=http%3a%2f%2falumni%2echinaren%2ecom">
<INPUT TYPE=HIDDEN NAME=group VALUE="www">
<tr>
<td height="165">
<table border=0 width=100% cellspacing=0 cellpadding=1 bgcolor=#bfbfbf>
<tr>
<td> <table width=96% cellspacing=0 cellpadding=3 border=0 bgcolor=#e6e6e6>
<tr >
<td width=25% align=right>用户:</td>
<td width=75%><input name=username MAXSIZE=32 type=text size=15 style="font-size:9pt;font-family:arial"></td>
</tr>
<tr >
<td width=25% align=right>密码:</td>
<td width=75%><input name=password MAXSIZE=32 type=password size=15 style="font-size:9pt;font-family:arial"></td>
</tr>
<TR>
<TD colspan=2><INPUT TYPE=CHECKBOX NAME="wp" VALUE='YES'>
登录时启动<a href='http://online.chinaren.com/' target=_blank>WebPager</a>
<BR> <INPUT TYPE=radio NAME="us" VALUE='' CHECKED>
我是ChinaRen用户<BR> <INPUT TYPE=radio NAME="us" VALUE='yes'>
我是SOHU用户 </td>
</TR>
</table>
<table width=100% cellspacing=0 cellpadding=3 border=0>
<tr >
<td width=90% align=right><input border=0 type=image src="http://images.chinaren.com/product/profile/images/login.gif"></td>
<td width=10%></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</form>
<SCRIPT>
function ChkLogin()
{
if(FM.username.value.length<3 || FM.username.value.length>32)
{
alert("您的用户名长度应在3-32字之间");
return false;
}
if(FM.password.value.length<2 || FM.password.value.length>32)
{
alert("您的密码长度应在2-32字之间");
return false;
}
if(FM.us[1].checked){
ts.cn.value=FM.username.value;
ts.pw.value=FM.password.value;
ts.submit();
return false;
}
return true;
}
</SCRIPT>
<FORM NAME=ts ACTION='http://login.sohu.com/chkpwd_comm.php' method=post>
<INPUT TYPE=HIDDEN name=cn>
<!--INPUT TYPE=HIDDEN name=url value="http://alumni.chinaren.com/index.jsp?home=1&noopen=yes"-->
<INPUT TYPE=HIDDEN NAME=url value="http%3a%2f%2falumni%2echinaren%2ecom">
<INPUT TYPE=HIDDEN name=pw>
<input type=hidden name=sohu_chinaren value=1>
</FORM>
</table>
</center></body>
</html>
DFlyingchen 2003-10-25
  • 打赏
  • 举报
回复
照它的表格抄下来,在action中写上它的CGI处理程序地址应该就好了。如果不可以,可能是该网页用到了cookie或session等预先验证技术,这样就没什么办法了 :(

61,112

社区成员

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

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