Login file, filename login.asp

Source: Internet
Author: User
Tags expression client
File name login file, filename login.asp

<HTML>
<HEAD>
<style type= "Text/css" >
<!--
TD {Font-size:9pt; font-family: "XXFarEastFont-Arial"; line-height:10pt}
. td1 {font-size:9pt; font-family: "XXFarEastFont-Arial"; line-height:15pt}
Input {font-family: song body; 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 ("Please fill in the chat nickname and then enter the chat room, thank you!") ");d Ocument.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 ("The name cannot contain special characters:% # & *. \ \");}
}
}
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>
<body topmargin=10>
<table width=720 align=center cellpadding=0 cellspacing=0><tr><td style= "Background-color:ffffff" ></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 ">
&LT;TR&GT;&LT;TD rowspan=3 width=100></td><td colspan=2 style= "font-size:16px" height=40 valign=middle align=center><% =application ("Roomname")%> chat room </td><td rowspan=3 width=100></td></tr >
<tr align=center><td align=right> Chat Nickname: <input type=text name= ' username ' size=12>
System Password: <input type=password name= ' password ' size=12></td>
&LT;TD valign=middle width=60><input class= ' input1 ' type= ' image ' src= ' http://www.163design.net/a/y/login.gif ' class= ' Pt9 ' ></td>
</tr>
&LT;TR&GT;&LT;TD align=center colspan=2 height=27 valign=bottom> only system administrators need a password </td></tr>
</table>
</form>
<table width=720 align=center>
&LT;TR&GT;&LT;TD style= "backgound-color:white;font-size:17px;color=red" Align=center height=35 valign=middle> Warm love pure ASP chat room function profile </td></tr>
&LT;TR&GT;&LT;TD class= ' td1 ' > Chat Room Program 1.0, which is independently developed by the software using the homepage, is now released in free form and is freely available to anyone for any non-commercial purpose, and no one can disseminate this program and provide other downloads. Anyone who needs a commercial purpose must be informed beforehand. The software uses the homepage to retain the modification and revision rights to the software, and no one may modify any part of the software, and any changes to the settings or landscaping required by the user to perform the software are not permitted. The copyright notice contained in the package must not be removed. Where non-commercial use must be on the home page of the chat room plus the software uses the homepage connection. Connection address: Http://swuse.yeah.net, connection title: Software Use homepage </td></tr>
&LT;TR&GT;&LT;TD class= ' TD1 ' > This chat room features: fast-action expression by the client, the network data transfer less; The function is strong, where the current version 1.0 has the function is: screen/Open some user's chat record, Private Message function (when the private Whisper function is selected, no matter what expression is used, only the person you are looking at can see), do not have a scratch function-find this feature, only relevant to your content will be displayed, you can turn on/off the music/midi, without refreshing the page; managers can kick people by name or play IP , you can also clear the kicked list and be kicked IP. </td></tr>
&LT;TR&GT;&LT;TD class= ' TD1 ' > because the application tag is used to detect user timeout connections, the "zombie" problem in the chat room is completely resolved--when more than 100 chat content is not downloaded, the system will think that the user dropped the line, This clears the resource that the user is using. </td></tr>
&LT;TR&GT;&LT;TD class= ' TD1 ' > also used the application tag to notify users to refresh the list area method, once the user increases, immediately notify the current online user refresh list (in a refresh cycle), This solves the problem that the user list displays the delay very well. </td></tr>
&LT;TR&GT;&LT;TD class= ' TD1 ' > has known shortcomings and bugs: first, like other pure ASP chat rooms, still cannot solve once the server received chat content and immediately refresh the client screen problem-This is pure ASP chat room can not do; The interface is coarse; third, no user registration function; Four, because all use application and session variable, the system load is heavy. </td></tr>
&LT;TR&GT;&LT;TD class= ' TD1 ' >



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.