simple chat script

Discussion in 'Javascript' started by Clayton23, Jun 12, 2008.

  1. Clayton23

    Clayton23 Guest

    <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>
     
    Clayton23, Jun 12, 2008
    #1
    1. Advertising

  2. Clayton23

    Peter Guest

    Now that's what I call poor HTML!

    And, more important: JAVA != JS
     
    Peter, Jun 12, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ali
    Replies:
    0
    Views:
    402
  2. Angus Parvis

    simple RMI chat problem

    Angus Parvis, May 17, 2005, in forum: Java
    Replies:
    1
    Views:
    10,890
    BartCr
    May 17, 2005
  3. Replies:
    0
    Views:
    2,236
  4. Dave Kelly

    simple chat script

    Dave Kelly, Feb 18, 2007, in forum: HTML
    Replies:
    4
    Views:
    1,148
    J.O. Aho
    Feb 19, 2007
  5. dillon
    Replies:
    1
    Views:
    189
    higabe
    Nov 17, 2003
Loading...

Share This Page