|
发表于 2004-3-16 22:15:37
|
显示全部楼层
[quote:3a8903053d="樱家冢"][code:1]<!-- Start of Global variables -->
<script language="Javascript">
<!--//
var global_ok = 0;
var userlabel = "";
var passlabel = "";
var submitlabel = "";
var loginlabel = "";
//-->
</script>
<!-- End of Global variables -->
<script language="Javascript">
<!--//
userlabel="用户名称: ";
passlabel="密码: ";
submitlabel="递交";
loginlabel="登入";
//-->
</script>
<html>
<head>
<title>SSO User Login</title></head>
<!-- Start of JS functions -->
<script language="Javascript">
<!--//
var global_count = 0;
var user = "";
var pass_before = "";
function checkit()
{
pass_before = document.form.pass.value;
user = document.form.user.value;
document.form.pass.value = "";
document.form.user.value = "";
if(navigator.userAgent.indexOf('Netscape6') != -1)
{
N6_checkit();
}
else
{
IE_N4_checkit();
}
return false;
}
function IE_N4_checkit()
{
if (user != "" && pass_before != "")
{
if (global_ok == 0)
{
if (global_count < 20)
{
retry();
}
else
{
alert("Please input and submit your uname and password again");
global_count = 0;
}
}
else
{
var pass_after = document.SA.encode(pass_before);
document.newform.user.value=user;
document.newform.pass.value=pass_after;
document.newform.submit();
}
}
}
function retry()
{
global_count++;
if(navigator.userAgent.indexOf('Netscape6') != -1)
{
setTimeout('N6_checkit()', 1500);
}
else
{
setTimeout('IE_N4_checkit()', 1500);
}
}
//-->
</script>
<!-- End of JS functions -->
<body bgcolor="#001D6B" topmargin="0" leftmargin="0" alink=white vlink=white link=white>
<td width="85" align=right><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#ffffff">
敬告:由于安全方面的原因,系统的授权证书已经更新。在您成功登录后,如果系统弹出一个安全警告对话窗口,请选中“Always trust this content ...”后单击【Yes】按钮或单击【Yes】按钮。由此造成的不便,在此深表歉意!
</font></b></td>
<table width=600 border=0 cellpadding=0 cellspacing=0 align="center">
<tr>
<td>
<div align="center"><img src="/sso/image/ct.jpg"></div>
</td>
</tr>
<tr>
<td height="38" valign="bottom" align="right" rowspan="2">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="100" align="right" valign="bottom" height="73">
<div align="left">
<SCRIPT>
function fnSaveForm(){
window.external.AutoCompleteSaveForm(form);
}
</SCRIPT>
<form name="form" onsubmit="return checkit();" >
<table width="580" border="0" align="center">
<tr>
<td width = "15">
<img src=/sso/image/spacer.gif height=1 width=15>
</td>
<td width="85" align=right>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#FFFFFF">
<script language="Javascript">
<!--//
document.write(userlabel);
//-->
</script>
</font> </b></font></p>
</td>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>
<input type="text" name="user" size=12>
</b></font></td>
<td>&nbsp;</td><td rowspan=2>
</td>
</tr>
<tr>
<td width = "15">
<img src=/sso/image/spacer.gif height=1 width=15>
</td>
<td width="85" align=right><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">
<script language="Javascript">
<!--//
document.write(passlabel);
//-->
</script>
</font></b></td>
<td width="480"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="password" name="pass" size=12>
<script language="Javascript">
<!--//
if (navigator.appName == 'Microsoft Internet Explorer') {
document.write("<input type='submit' name='Submit' value='"+submitlabel+"' onclick=\"fnSaveForm()\">");
} else {
document.write("<input type='submit' name='Submit' value='"+submitlabel+"'>");
}; //-->
</script>
<img src=/sso/image/spacer.gif height=1 width=20>
<font color="#FFFFFF">
<img src=/sso/image/spacer.gif height=1 width=20>
<font color="#FFFFFF">
</font></font></b></td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>
<a href="http://sso.sz.net.cn/userinfo/">用户查询</a>
</div>
</table>
<APPLET CODE=SecureApplet ARCHIVE=/sso/SecureApplet.jar WIDTH=1 HEIGHT=1 NAME="SA" MAYSCRIPT=true>
<PARAM NAME = cabbase VALUE =/sso/SecureApplet.cab>
<PARAM NAME = debug VALUE =true>
</APPLET>
<font color="#001D6B">
<a href="#" onclick="alert(global_ok)"><font color="#001D6B">
alert
</font></a>
</font>
<form name="newform" method='post' action='/ssoapp/servlet/com.macroview.sso.SSOServlet'>
<input type=hidden name="user" value="">
<input type=hidden name="pass" value="">
<input type=hidden name=action value="S_LOGIN">
</form>
</body>
</html>
<script language="Javascript">
</script>
[/code:1]
这是页面源代码,看明白了?使用了javascript和java applet,并且假设浏览器为IE或者Netscape4 or 6,所以,linux下面使用mozilla(或者其他浏览器)的话,只要允许运行javascript和java applet(这需要安装j2re)就可以了,然后记得把浏览器标识设置为netscape 4就没问题。[/quote]
请看以下202.109.117.170是否也是这样的要JAVASCRIPT?我在FEDORA CORE1也无法上网,流览器mozilla和KOSUQ***, 具体怎么做的?怎么样下载,安装J2RE?在那里允许运行javascript和java applet?修改浏览器标识设置为netscape (在MOZILLA里没有见到,只有看见已经允许JAVASRIPT用于网页) |
|