Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > simple chat script

Reply
Thread Tools

simple chat script

 
 
Clayton23
Guest
Posts: n/a
 
      06-12-2008
<html>
<head>
<base href="http://chat.webhop.org:8000/themes/colors/">
<title>ConferenceRoom by WebMaster, Inc.</title>
<script language=javascript>
function regNick(form) {
var pass = form.npass.value
var email = form.email.value
document.cr.output('/ns register '+pass+' '+email)
return false
}

function regChan(form) {
var channel = ""
var desc = form.desc.value
var pass = form.cpass.value
channel = document.cr.getCurrentRoom()
document.cr.output('/cs register '+channel+' '+pass+' '+desc)
return false
}
</script>
</head>
<body bgcolor=#000000 vlink=#aa0000 link=#FF8000 alink=#e0e000
text=#ffffff>
<center>
<h2>ConferenceRoom 1.9 by WebMaster, Inc.</h2>

<applet
archive="/java/cr.zip"
codebase="/java/"
name="cr"
code="ConferenceRoom.class"
width=500
height=300>
<param name=ssp value="/params/colors.prm">
<param name=channel value="#lobby">
<param name=nick value="Guest">
<center>
This application requires Java suport.<BR>
This server also available via IRC at:<BR>
<a href="irc://localhost:7000">localhost:7000</a>
</center>
</applet>
<br>
<img align=center border=0 hspace=5 src="sound.jpg">
<a href="javascript:document.cr.sound('bell','Rings bell')">Bell</a>
<img align=center border=0 hspace=5 src="sound.jpg">
<a href="javascript:document.cr.sound('knock','Knocks ')">Knock</a>
<img align=center border=0 hspace=5 src="sound.jpg">
<a href="javascript:document.cr.sound('gong','Gongs') ">Gong</a>
<img align=center border=0 hspace=5 src="sound.jpg">


<table width="500" border="0">
<tr>
<td align="center" bgcolor="#55CCCC" colspan="2"><font
face="arial" size="3"><b>Registration Services</b></font></td>
</tr>
<tr>
<td width="50%">
<form name="nickForm" onSubmit="return regNick(this)">
<table>
<tr>
<td colspan="2" align="center" bgcolor="#227777"><font
face="helvetica" size="2"><b>NickName</b></td>
</tr>
<tr>
<td><font face="verdana" size="2">E-Mail:</font></td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td><font face="verdana" size="2">Password:</font></td>
<td><input type="password" name="npass"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Reg
It"></form></td>
</tr>
</table>
</td>
<td width="50%">
<form name="chanForm" onSubmit="return regChan(this)">
<table>
<tr>
<td colspan="2" align="center" bgcolor="#227777"><font
face="helvetica" size="2"><b>Channel</b></font></td>
</tr>
<tr>
<td><font face="verdana" size="2">Password:</font></td>
<td><input type="password" name="cpass"></td>
</tr>
<tr>
<td><font face="verdana" size="2">Description:</td>
<td><input type="text" name="desc"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Reg
It"></form></td>
</tr>
</table>
</td>
</tr>
</table>


</center>
</body>
</html>
 
Reply With Quote
 
 
 
 
Peter
Guest
Posts: n/a
 
      06-12-2008
Now that's what I call poor HTML!

And, more important: JAVA != JS

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple chat script Dave Kelly HTML 4 02-19-2007 12:08 PM
Chat Server and Chat Client for INTRANET diptanu@gmail.com Java 0 01-30-2006 06:56 PM
simple RMI chat problem Angus Parvis Java 1 05-17-2005 11:29 AM
Very simple chat - problem with message sending Ali Java 0 02-21-2004 07:58 PM
Simple problem with a simple chat script dillon Javascript 1 11-17-2003 11:11 PM



Advertisments