By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,045 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,045 IT Pros & Developers. It's quick & easy.

simple chat script

P: n/a
<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>
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Now that's what I call poor HTML!

And, more important: JAVA != JS

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.