日期:2013-05-19  浏览次数:20928 次

登录文件,文件名login.asp

<HTML>
<HEAD>
<style type="text/css">
<!--
td {  font-size: 9pt; font-family: "宋体";line-height:10pt}
.td1 {  font-size: 9pt; font-family: "宋体";line-height:15pt}
input {font-family: 宋体;font-size:9pt;line-height:9t;border:0pt;}
tr { background-color:#DfF5FC }
A {font-size:9pt}
A:link{text-decoration: none;color:#0080e0}
A:visited{text-decoration:none;color:#0080e0}
A:hover{text-decoration:underline;color:#ff8000}
-->
</style>
<title><% =application("roomname") %></TITLE>
<script>
var focusok=false;
vers = navigator.appVersion;
if (navigator.appName == "Microsoft Internet Explorer"){pos = vers.lastIndexOf('.');vers = vers.substring(pos-1,vers.length);}
proper_version = parseFloat(vers);
if(proper_version>=5){focusok=true;}

function validname(str1)
{
var s,i,j;
if (str1.length <1) {alert("请填写聊天昵称后再进入聊天室,谢谢!");document.login.username.focus();return false;}
s="'%#&*\"\\";
for (i=0; i<str1.length; i++) {
   for(j=0;j<s.length;j++){
   if (str1.charAt(i) == s.charAt(j)){alert("名字中不能包含特殊字符: % # & * .\\");}
   }
  }
  return true;
}

function wenxinchat() {
  var obj=document.login;
  var username=obj.username.value;
  if (validname(username)){
  var wenxinchat = window.open("","wenxinchat","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=790,height=530");
   document.login.target="wenxinchat";
   if (focusok){wenxinchat.focus();}
   return true;
   }
  else{document.login.username.focus(); return false;}
}
</script>
</head>
<body topmargin=10>
<table width=720 align=center cellpadding=0 cellspacing=0><tr><td style="background-color:ffffff"><img src='http://www.163design.net/a/y/ilxmj.gif' alt='ilxmj,希望你能看到'></td></tr></table>
<form name='login' method='POST' action='chat.asp' onsubmit="return wenxinchat()">
<table width="720" border="0" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" align="center">
<tr><td rowspan=3 width=100></td><td colspan=2 style="font-size:16px" height=40 valign=middle align=center><% =application("roomname") %>聊天室</td><td rowspan=3 width=100></td></tr>
<tr align=center><td align=right>聊天昵称:<input type=text name='username' size=12>
  系统密码:<input type=password name='password' size=12></td>
  <td valign=middle width=60><input class='input1' type='image' src='http://www.163design.net/a/y/login.gif' class='pt9'></td>
</tr>
<tr><td align=center colspan=2 height=27 valign=bottom>只有系统管理员才需要密码</td></tr>
</table>
</form>
<table width=720 align=center>
<tr><td style="backgound-color:white;font-size:17px;color=red" align=center height=35 valign=middle>温馨情缘纯Asp聊天室功能简介</td></tr>
<tr><td class='td1'>    由软件使用主页独立开发的聊天室程序1.0版本,现以免费的形式发放,任何人皆可以自由使用于任何非商业用途,任何人不可以传播本程序和提供他人下载。凡需要商业用途的需事先告知。软件使用主页保留对本软件的更改与订正权利,任何人不得修改本软件的任何一部分,使用者执行本软件所需的设置或外观美化的更改不在此限。不得撤除包含在软件包中的版权声明。凡非商业用途必须在聊天室的首页加上软件使用主页的连接。连接地址:http://swuse.yeah.net,连接标题:软件使用主页</td></tr>
<tr><td clas