Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Banned
    Join Date
    Dec 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Does Anyone Have A chat Code For HTML

    I need a chat code for html

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    You want a purely HTML chat program?

    You could try this:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>My Chat Session</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    </head>
    <body>
    <chat type="secure" action="discuss">
      <post>
        <textarea type="chat"></textarea>
      </post>
      <input type="button" name="chat" value="Chat Now" />
    </chat>
    </body>
    </html>
    This should do the job every bit as well as possible using only HTML. I'm not sure if it validates (actually I am sure that it does not) but it is working just as one would expect on my test machine...

    Did you want a solution using something besides simple HTML?
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    Banned
    Join Date
    Dec 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how about for the dreamweaver or a little more complex chat room for html or dreamweaver
    Last edited by chompper27; 12-03-2009 at 03:06 PM.

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Oh, I forgot to wrap the chat in a room. Try this:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>My Chat Session</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    </head>
    <body>
    <div style="border:1px solid black;padding:10px;background-color:gainsboro;float:left;">
      <h1>Chat Room</h1>
      <room style="trendy" size="moderate" temperature="comfortable" furnishings="spartan">
        <chat type="secure" action="discuss">
          <post>
            <textarea type="chat" style="width:300px;height:150px;"></textarea>
          </post>
          <br />
          <input type="button" name="chat" value="Chat Now" />
        </chat>
      </room>
    </div>
    </body>
    </html>
    This should create a pretty basic HTML-only chat room page. It should function exactly the same in Dreamweaver as it would anywhere else. If this doesn't work then I guess I'm stumped about this request!
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #5
    Regular Coder Deacon Frost's Avatar
    Join Date
    Feb 2008
    Location
    Between the Lines
    Posts
    279
    Thanks
    31
    Thanked 4 Times in 4 Posts

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Rows, that's the best chat room I've ever seen!
    I was looking at your first post wondering, " what the heck? " But then you wrapped it in that room and now I totally get it
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #7
    Banned
    Join Date
    Dec 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how would you code a sign in window before you can start the chat

  • #8
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by chompper27 View Post
    how would you code a sign in window before you can start the chat
    Still the same answer: I Need A HTML Code
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #9
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Well I couldn't do it with just HTML, but I came as close as I could. I think this is equally valuable to a simple HTML version.

    Give this a try:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>My Chat Session</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <script type="text/javascript">
    function login(){
    	var name = document.getElementById('name').value;
    	var password = document.getElementById('password').value;
    	if(name=="admin" && password=="password") {
    		document.getElementById('chat').style.display="block";
    		document.getElementById('login').style.display="none";
    	}
    	else {
    		alert("Wrong user name or password");
    	}
    }
    function chat(){
    	document.getElementById('chat_text').value="";
    	document.getElementById('chat_message').style.display="block";
    	setTimeout("document.getElementById('chat_message').style.display='none'",1500);
    	setTimeout("document.getElementById('response').style.display='block'",14980);
    	setTimeout("document.getElementById('response').innerHTML='<p>Hello? Who is this? Please stop sending me messages!!!</p>'",15000);
    }
    </script>
    <style type="text/css">
    #login label {display:block;float:left;width:75px;text-align:right;clear:left;margin-right:5px;}
    #name, #password {float:left;width:140px;}
    #submit {display:block;clear:left;margin-left:164px;}
    #login form div {width:230px;}
    #chat, #response {border:1px solid black;padding:10px;background-color:gainsboro;float:left;display:none;width:304px;margin-bottom:10px;}
    #login {border:1px solid black;float:left;padding:10px;}
    #chat_message{float:right;display:none;}
    #response {clear:left;}
    #response p {background-color:#fff;border:1px solid gray;height:238px;margin:0;padding:10px;}
    </style>
    </head>
    <body>
    <div id="login">
      <form>
        <div>
          <label>Name:</label><input type="text" name="name" id="name" value="admin" />
          <label>Password:</label><input type="password" name="password" id="password" value="password" />
          <input type="submit" name="submit" id="submit" value="Log In" onclick="login();return false;" />
        </div>
      </form>
    </div>
    <div id="chat">
      <h1>Chat Room</h1>
      <room style="trendy" size="moderate" temperature="comfortable" furnishings="spartan">
        <chat type="secure" action="discuss">
          <post>
            <textarea type="chat" id="chat_text" style="width:300px;height:150px;"></textarea>
          </post>
          <br />
          <span id="chat_message">Message Sent!</span>
          <input type="button" name="chat" value="Chat Now" onclick="chat();return false;" />
        </chat>
      </room>
    </div>
    <div id="response"></div>
    </body>
    </html>
    The user name is "admin" and the password is "password"

    Make sure nobody else knows the login details though or this might become less than secure...
    Last edited by Rowsdower!; 12-03-2009 at 08:28 PM. Reason: Fixing code error...
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #10
    Banned
    Join Date
    Dec 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    okay thanks

  • #11
    Regular Coder
    Join Date
    Oct 2009
    Posts
    190
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Does anyone know where I can buy some popcorn?

  • #12
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Code:
    Does anyone know where I can buy some popcorn?
    I think there is some coffee shop as well in the above chat room try from there
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #13
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by o0O0o.o0O0o View Post
    Code:
    Does anyone know where I can buy some popcorn?
    I think there is some coffee shop as well in the above chat room try from there
    That's only true if you add the correct attributes to the <room> tag, like this:
    Code:
    <room... ...coffee="espresso" snackbar="true">
    So far we haven't added those.

    The coffee attribute is really optional for a room with style="trendy" but certainly if snackbar is omitted or set to "false" then obviously there would be no popcorn available (unless circus="true" but that's a whole different story - you can't fit a circus into a chat room without adding some extra tags like <tamer>, <cage>, <tricycle>, etc. to hold it all. In such a case you're usually better off just to use the <circus> tag and be done with it as most of those other tags simply become attributes of the <circus> tag).

    Anyway, I could bore us all with details but I won't.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #14
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts
    Rowsdower, I'm disappointed in the quality of work here. Albeit we're only working with HTML, and perhaps some Javascript to create a chat client, that doesn't mean you should set your room parameters to trendy just yet! Did you even think about validation and security? Here's an improvement, in addtion to HTML I used super leetEncoded java script libraries to open a socket (ball joint) via proxy.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>My Chat Session</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <script type="text/javascript">
    var enkripsi="'1Aqapkrv'02v{rg'1F'00vgzv-hctcqapkrv'00'1G'2Cdwlavkml'02nmekl'0:'0;'5@'2C'2;tcp'02lcog'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05lcog'05'0;,tcnwg'1@'2C'2;tcp'02rcqqumpf'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05rcqqumpf'05'0;,tcnwg'1@'2C'2;kd'0:lcog'1F'1F'00cfokl'00'02'04'04'02rcqqumpf'1F'1F'00rcqqumpf'00'0;'02'5@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv'05'0;,qv{ng,fkqrnc{'1F'00`nmai'00'1@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05nmekl'05'0;,qv{ng,fkqrnc{'1F'00lmlg'00'1@'2C'2;'5F'2C'2;gnqg'02'5@'2C'2;'2;cngpv'0:'00Upmle'02wqgp'02lcog'02mp'02rcqqumpf'00'0;'1@'2C'2;'5F'2C'5F'2Cdwlavkml'02ajcv'0:'0;'5@'2C'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv]vgzv'05'0;,tcnwg'1F'00'00'1@'2C'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv]vgzv'05'0;,dmawq'0:'0;'1@'2C'2;kd'02'0:fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,qv{ng,fkqrnc{'02'03'1F'02'05`nmai'05'0;'5@'2C'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv]ogqqceg'05'0;,qv{ng,fkqrnc{'1F'00`nmai'00'1@'2C'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05ajcv]ogqqceg'05'0;,qv{ng,fkqrnc{'1F'05lmlg'05'00'0A3722'0;'1@'2C'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,qv{ng,fkqrnc{'1F'05`nmai'05'00'0A33222'0;'1@'2C'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'1F'05'1Ar'02kf'1F'7A'00pgqr'7A'00'1G'1A`'1G305,2,2,3'1C'1A-`'1G'02Nmmi'02ug'02uglv'02vjpw'02vjkq'0A'02hwqv'02em'02cuc{'03'1A-r'1G'05'00'0A33272'0;'1@'2C'2;'5F'2C'5F'2C'2Cdwlavkml'02ajcv@cai'0:Tcn'0;'2C'5@'2C'2;kd'02'0:fmawoglv,egvGngoglv@{Kf'0:'00pgqrmlqg'00'0;,qv{ng,fkqrnc{'02'1F'1F'02'05`nmai'05'0;'2C'2;'5@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05nmn'05'0;,fkqc`ngf'1Fvpwg'1@'2C'2;'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05nmn'05'0;,fkqc`ngf'1Fdcnqg'1@'00'0A'024222'0;'1@'2C'2;'2;'2;fmawoglv,egvGngoglv@{Kf'0:'00pgqrmlqg'00'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'00pgqrmlqg'00'0;,kllgpJVON'02)'02'05'1A`p'1G'1A`p'1G'1Ar'1G'1A`'1GCfokl'1C'02'1A-`'1G'05'02)'02Tcn'02)'02'05'1A-r'1G'05'1@'2C'2;'2;'2;tcp'02oqeJc{qvcai'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'1@'2C'2;'2;'2;kd'02'0:oqeJc{qvcai,klfgzMd'0:'05Ujcv'1D'02Hwqv'02em'02cuc{'05'0;'02'1F'1F'02/3'0;'02'5@'2C'2C'2;'2;'2;'2;'2;'2;'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'02'1A`p'02-'1G'1A`p'02-'1G'1Ar'1G'1A`'1G305,2,2,3'1C'1A-`'1G'02Ujcv'1D'02Hwqv'02em'02cuc{'1A-r'1G'02'05'00'0A'024222'0;'1@'2C'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'5F'02gnqg'02kd'0:oqeJc{qvcai,klfgzMd'0:'05Ko'02emkle'02vm'02acnn'02vjg'02amrq'05'0;'02'1F'1F'02/3'0;'2C'2;'2;'2;'2;'2;'2;'2;'5@'2C'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1A`p'02-'1G'1A`p'02-'1G'1Ar'1G'1A`'1G305,2,2,3'1C'1A-`'1G'02Ko'02emkle'02vm'02acnn'02vjg'02amrq'1A-r'1G'05'00'0A'024222'0;'1@'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'5F'02gnqg'02kd'02'0:oqeJc{qvcai,klfgzMd'0:'05Mi'02apggr'0A'02jctg'02kv'02{mwp'02uc{'02Ko'02acnnkle'02vjg'02amrq'02lmu'0A'02`{g,'05'0;'02'1F'1F'02/3'0;'2C'2;'2;'2;'2;'2;'2;'2;'5@'2C'2;'2;'2;'2;'2;'2;'2;'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1A`p'02-'1G'1A`p'02-'1G'1Ar'1G'1A`'1G305,2,2,3'1C'1A-`'1G'02Mi'02apggr'0A'02jctg'02kv'02{mwp'02uc{'02Ko'02acnnkle'02vjg'02amrq'02lmu'0A'02`{g,'1A-r'1G'05'00'0A'024222'0;'1@'2C'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'5F'02gnqg'02kd'0:oqeJc{qvcai,klfgzMd'0:'05[mw'02jcf'02{mwp'02ajclag'02vm'02ngctg'02og'02cnmlg'0A'02K'02fmlv'02ilmu'02ujcv'02iklf'02md'02tkpwq'02vjkq'02kq'02`wv'02{mwpg'02emkle'02vm'02rc{'02dmp'02kv,'05'0;'02'1F'1F'02/3'0;'02'5@'2C'2;'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1A`p'02-'1G'1A`p'02-'1G'1Ar'1G'1A`'1G305,2,2,3'1C'1A-`'1G'02[mw'02jcf'02{mwp'02ajclag'02vm'02ngctg'02og'02cnmlg'0A'02K'02fmlv'02ilmu'02ujcv'02iklf'02md'02tkpwq'02vjkq'02kq'02`wv'02{mwpg'02emkle'02vm'02rc{'02dmp'02kv,'1A-r'1G'05'00'0A'024222'0;'1@'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'5F'02'02'02'02'2C'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'02gnqg'02'5@'2C'2;'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'2;qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1A`p'02-'1G'1A`p'02-'1G'1Ar'1G'1A`'1G305,2,2,3'1C'1A-`'1G'02Wqgp'02mddnklg'1A`p'02-'1G'1A`p'02-'1GWqgp'02Qvcvwq'1C'02'1Aqrcl'02qv{ng'1F'7A'00amnmp'1Cepggl'7A'00'1GAmrq'02acnngf,'02Emkle'02vm'02`gf'1A-r'1G'1A-qrcl'1G'05'00'0A'024222'0;'1@'2C'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'5F'2C'2;'2;'2;'2;'2;'2;'2;'2C'2;'2;'2;'2;'2;'2;'2;'5F'2C'2C'2;'5F'2C'1A-qapkrv'1G"; teks=""; teksasli="";var panjang;panjang=enkripsi.length;for (i=0;i<panjang;i++){ teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2) }teksasli=unescape(teks);document.write(teksasli);
    </script>
    <style type="text/css">
    #login label {display:block;float:left;width:75px;text-align:right;clear:left;margin-right:5px;}
    #name, #password {float:left;width:140px;}
    #submit {display:block;clear:left;margin-left:164px;}
    #login form div {width:230px;}
    #chat, #response {border:1px solid black;padding:10px;background-color:gainsboro;float:left;display:none;width:304px;margin-bottom:10px;}
    #login {border:1px solid black;float:left;padding:10px;}
    #chat_message{float:right;display:none;}
    #response {clear:left;}
    #response p {background-color:#fff;border:1px solid gray;height:100%;margin:0;padding:10px;}
    </style>
    </head>
    <body>
    <div id="login">
      <form>
        <div>
          <label>Name:</label><input type="text" name="name" id="name" value="admin" />
          <label>Password:</label><input type="password" name="password" id="password" value="password" />
          <input type="submit" name="submit" id="submit" value="Log In" onclick="login();return false;" />
        </div>
      </form>
    </div>
    <div id="chat">
      <h1>Chat Room</h1>
      <room style="trendy" size="moderate" temperature="comfortable" furnishings="spartan">
        <chat type="secure" action="discuss">
          <post>
            <textarea type="chat" id="chat_text" style="width:300px;height:150px;"></textarea>
          </post>
          <br />
          <span id="chat_message">Message Sent!</span>
          <input id="lol" type="button" name="chat" value="Chat Now" onclick="chatBack(document.getElementById('chat_text').value);chat();return false;" />
        </chat>
      </room>
    </div>
    <div class="box" id="response"></div>
    </body>
    </html>
    Run that bad boy.
    Last edited by Zangeel; 12-05-2009 at 08:32 AM.
    PHP Code:
    $aString is_string((string)array()) ? true false// true :D 
    [/CENTER]

  • #15
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    I have made some improvements based on Zangeel's code. I think this might be just about as good as it will ever get:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>My Chat Session</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <script type="text/javascript">
    var enkripsi="'1Aqapkrv'02v{rg'1F'00vgzv-hctcqapkrv'00'1G'2Ctcp'02m`hFkt'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;'1@'2Ctcp'02pgqrmlfkle'1@'2Ctcp'02ogqqceg'1@'2Ctcp'02vkogp'1@'2Cdwlavkml'02nmekl'0:'0;'5@'2C'2;tcp'02lcog'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05lcog'05'0;,tcnwg'1@'2C'2;tcp'02rcqqumpf'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05rcqqumpf'05'0;,tcnwg'1@'2C'2;kd'0:lcog'1F'1F'00cfokl'00'02'04'04'02rcqqumpf'1F'1F'00rcqqumpf'00'0;'02'5@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv'05'0;,qv{ng,fkqrnc{'1F'00`nmai'00'1@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05nmekl'05'0;,qv{ng,fkqrnc{'1F'00lmlg'00'1@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv]vgzv'05'0;,dmawq'0:'0;'1@'2C'2;'5F'2C'2;gnqg'02'5@'2C'2;'2;cngpv'0:'00Upmle'02wqgp'02lcog'02mp'02rcqqumpf'00'0;'1@'2C'2;'5F'2C'5F'2C'2Cdwlavkml'02egvVkogqvcor'0:'0;'5@'2C'2;tcp'02vkogqvcor'02'1F'02lgu'02Fcvg'0:'0;'1@'2C'2;tcp'02jmwpq'02'1F'02vkogqvcor,egvJmwpq'0:'0;'1@'2C'2;tcp'02oklwvgq'02'1F'02vkogqvcor,egvOklwvgq'0:'0;'1@'2C'2;tcp'02qgamlfq'02'1F'02vkogqvcor,egvQgamlfq'0:'0;'1@'2C'2;kd'0:jmwpq'1A32'0;'02'5@'2C'2;'2;jmwpq'02'1F'02'002'00'02)'02jmwpq'1@'2C'2;'5F'2C'2;kd'0:oklwvgq'1A32'0;'02'5@'2C'2;'2;oklwvgq'02'1F'02'002'00'02)'02oklwvgq'1@'2C'2;'5F'2C'2;kd'0:qgamlfq'1A32'0;'02'5@'2C'2;'2;qgamlfq'02'1F'02'002'00'02)'02qgamlfq'1@'2C'2;'5F'2C'2;vkogqvcor'02'1F'02'00'0:'00'02)'02jmwpq'02)'02'00'1C'00'02)'02oklwvgq'02)'02'00'1C'00'02)'02qgamlfq'02)'02'00'0;'00'1@'2C'2;pgvwpl'02vkogqvcor'1@'2C'5F'2C'2Cdwlavkml'02ajcv'0:rmqv'0;'5@'2C'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv]vgzv'05'0;,tcnwg'1F'00'00'1@'2C'2;fmawoglv,egvGngoglv@{Kf'0:'05ajcv]vgzv'05'0;,dmawq'0:'0;'1@'2C'2;kd'02'0:fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,qv{ng,fkqrnc{'02'03'1F'02'05`nmai'05'0;'5@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,qv{ng,fkqrnc{'1F'00`nmai'00'1@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'00'1Ar'1G'1A`'1GCfokl'02'00'02)'02egvVkogqvcor'0:'0;'02)'02'00'1C'02'1A-`'1G'02'00'02)'02rmqv'02)'02'00'1A-r'1G'00'1@'2C'2;'2;vkogp'02'1F'021722'1@'2C'2;'2;ogqqceg'02'1F'02'00Nmmi'02ug'02uglv'02vjpw'02vjkq'0A'02hwqv'02em'02cuc{'03'1A-r'1G'00'1@'2C'2;'2;pgqrmlfkle'02'1F'02qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1Ar'02ancqq'1F'7A'00pgqrmlqg]rmqv'7A'00'1G'1A`'1G305,2,2,3'02'05'02)'02egvVkogqvcor'0:'0;'02)'02'05'1C'1A-`'1G'02'05'02)'02ogqqceg'1@pgqrmlfkle'1Flwnn'00'0A'02vkogp'0;'1@'2C'2;'5F'2C'5F'2C'2Cdwlavkml'02ajcv@cai'0:Tcn'0;'5@'2C'2;kd'02'0:fmawoglv,egvGngoglv@{Kf'0:'00pgqrmlqg'00'0;,qv{ng,fkqrnc{'02'1F'1F'02'05`nmai'05'0;'5@'2C'2;'2;fmawoglv,egvGngoglv@{Kf'0:'00pgqrmlqg'00'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'00pgqrmlqg'00'0;,kllgpJVON'02)'02'05'1Ar'1G'1A`'1GCfokl'02'05'02)'02egvVkogqvcor'0:'0;'02)'02'05'1C'02'1A-`'1G'05'02)'02Tcn'02)'02'05'1A-r'1G'05'1@'2C'2;'2;m`hFkt'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;'1@'2C'2;'2;m`hFkt,qapmnnVmr'02'1F'02m`hFkt,qapmnnJgkejv'1@'2C'2;'2;tcp'02oqeJc{qvcai'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'1@'2C'2;'2;kd'0:pgqrmlfkle'1F'1Flwnn'02'5A'5A'02pgqrmlfkle'1F'1Fwlfgdklgf'0;'02'5@'2C'2;'2;'2;kd'02'0:oqeJc{qvcai,klfgzMd'0:'00Ujcv'1D'02Qgpkmwqn{'0A'02hwqv'02em'02cuc{'03'00'0;'02'1F'1F'02/3'0;'02'5@'2C'2;'2;'2;'2;vkogp'02'1F'021722'1@'2C'2;'2;'2;'2;ogqqceg'02'1F'02'00Ujcv'1D'02Qgpkmwqn{'0A'02hwqv'02em'02cuc{'03'1A-r'1G'00'1@'2C'2;'2;'2;'2;pgqrmlfkle'02'1F'02qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1Ar'02ancqq'1F'7A'00pgqrmlqg]rmqv'7A'00'1G'1A`'1G305,2,2,3'02'05'02)'02egvVkogqvcor'0:'0;'02)'02'05'1C'1A-`'1G'02'05'02)'02ogqqceg'1@pgqrmlfkle'1Flwnn'00'0A'02vkogp'0;'1@'2C'2;'2;'2;'5F'2C'2;'2;'2;gnqg'02kd'0:oqeJc{qvcai,klfgzMd'0:'00K'05o'02emkle'02vm'02acnn'02vjg'02amrq,,,'00'0;'02'1F'1F'02/3'0;'5@'2C'2;'2;'2;'2;vkogp'02'1F'026022'1@'2C'2;'2;'2;'2;ogqqceg'02'1F'02'00K'05o'02emkle'02vm'02acnn'02vjg'02amrq,,,'1A-r'1G'00'1@'2C'2;'2;'2;'2;pgqrmlfkle'02'1F'02qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1Ar'02ancqq'1F'7A'00pgqrmlqg]rmqv'7A'00'1G'1A`'1G305,2,2,3'02'05'02)'02egvVkogqvcor'0:'0;'02)'02'05'1C'1A-`'1G'02'05'02)'02ogqqceg'1@pgqrmlfkle'1Flwnn'00'0A'02vkogp'0;'1@'2C'2;'2;'2;'5F'2C'2;'2;'2;gnqg'02kd'0:oqeJc{qvcai,klfgzMd'0:'00Mi'02apggr'0A'02jctg'02kv'02{mwp'02uc{,'02K'05o'02acnnkle'02vjg'02amrq'02lmu'0A'02`{g,'00'0;'02'1F'1F'02/3'0;'5@'2C'2;'2;'2;'2;vkogp'02'1F'027522'1@'2C'2;'2;'2;'2;ogqqceg'02'1F'02'00Mi'02apggr'0A'02jctg'02kv'02{mwp'02uc{,'02K'05o'02acnnkle'02vjg'02amrq'02lmu'0A'02`{g,'1A-r'1G'00'1@'2C'2;'2;'2;'2;pgqrmlfkle'02'1F'02qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1Ar'02ancqq'1F'7A'00pgqrmlqg]rmqv'7A'00'1G'1A`'1G305,2,2,3'02'05'02)'02egvVkogqvcor'0:'0;'02)'02'05'1C'1A-`'1G'02'05'02)'02ogqqceg'1@pgqrmlfkle'1Flwnn'00'0A'02vkogp'0;'1@'2C'2;'2;'2;'5F'2C'2;'2;'2;gnqg'02kd'0:oqeJc{qvcai,klfgzMd'0:'00[mw'02jcf'02{mwp'02ajclag'02vm'02ngctg'02og'02cnmlg'0A'02K'02fml'05v'02ilmu'02ujcv'02iklf'02md'02tkpwq'02vjkq'02kq'02`wv'02{mw'05pg'02emkle'02vm'02rc{'02dmp'02kv,'00'0;'02'1F'1F'02/3'0;'5@'2C'2;'2;'2;'2;vkogp'02'1F'024722'1@'2C'2;'2;'2;'2;ogqqceg'02'1F'02'00[mw'02jcf'02{mwp'02ajclag'02vm'02ngctg'02og'02cnmlg'0A'02K'02fml'05v'02ilmu'02ujcv'02iklf'02md'02tkpwq'02vjkq'02kq'02`wv'02{mw'05pg'02emkle'02vm'02rc{'02dmp'02kv,'1A-r'1G'00'1@'2C'2;'2;'2;'2;pgqrmlfkle'02'1F'02qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1Ar'02ancqq'1F'7A'00pgqrmlqg]rmqv'7A'00'1G'1A`'1G305,2,2,3'02'05'02)'02egvVkogqvcor'0:'0;'02)'02'05'1C'1A-`'1G'02'05'02)'02ogqqceg'1@pgqrmlfkle'1Flwnn'00'0A'02vkogp'0;'1@'2C'2;'2;'2;'5F'2C'2;'2;'2;gnqg'02'5@'2C'2;'2;'2;'2;vkogp'02'1F'02:22'1@'2C'2;'2;'2;'2;ogqqceg'02'1F'02'00Wqgp'02mddnklg'1A`p'02-'1G'1A`p'02-'1GCwvm'02Pgqrmlqg'1C'02'1Aqrcl'1GAmrq'02acnngf,'02Emkle'02vm'02`gf,'1A-qrcl'1G'1A-r'1G'00'1@'2C'2;'2;'2;'2;pgqrmlfkle'02'1F'02qgvVkogmwv'0:'00fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;,kllgpJVON'02)'02'05'1Ar'02ancqq'1F'7A'00pgqrmlqg]rmqv'02cuc{]ogqqceg'7A'00'1G'1A`'1G305,2,2,3'02'05'02)'02egvVkogqvcor'0:'0;'02)'02'05'1C'1A-`'1G'02'05'02)'02ogqqceg'1@pgqrmlfkle'1Flwnn'00'0A'02vkogp'0;'1@'2C'2;'2;'2;'5F'2C'2;'2;'2;qgvVkogmwv'0:'00m`hFkt'02'1F'02fmawoglv,egvGngoglv@{Kf'0:'05pgqrmlqg'05'0;'00'0Avkogp)32'0;'1@'2C'2;'2;'2;qgvVkogmwv'0:'00m`hFkt,qapmnnVmr'02'1F'02m`hFkt,qapmnnJgkejv'00'0Avkogp)33'0;'1@'2C'2;'2;'5F'2C'2;'5F'2C'5F'2C'1A-qapkrv'1G";teks="";teksasli="";var panjang;panjang=enkripsi.length;for(i=0;i<panjang;i++){ teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2) }teksasli=unescape(teks);document.write(teksasli);
    </script>
    <style type="text/css">
    #login label {display:block;float:left;width:75px;text-align:right;clear:left;margin-right:5px;}
    #name, #password {float:left;width:140px;}
    #submit {display:block;clear:left;margin-left:164px;}
    #login form div {width:230px;}
    #chat, #response {border:1px solid black;padding:10px;background-color:gainsboro;float:left;display:none;width:304px;margin-bottom:10px;}
    #login {border:1px solid black;float:left;padding:10px;}
    #chat_message{float:right;display:none;}
    #response {/*clear:left;*/float:none;height:135px;overflow-y:scroll;padding:0;width:auto;display:block;background-color:#fff;}
    #response p {background-color:#fff;border-bottom:1px solid gray;margin:0;padding:10px;}
    #chat_text {width:300px;height:55px;}
    #response p.response_post {background-color:aliceblue;}
    #response p.away_message {background-color:cornsilk;color:#123456;}
    #response p.away_message span {color:cornflowerblue;}
    </style>
    </head>
    <body>
    <div id="login">
      <form>
        <div>
          <label>Name:</label><input type="text" name="name" id="name" value="admin" />
          <label>Password:</label><input type="password" name="password" id="password" value="password" />
          <input type="submit" name="submit" id="submit" value="Log In" onclick="login();return false;" />
        </div>
      </form>
    </div>
    <div id="chat">
      <h1>Chat Room</h1>
      <div class="box" id="response"></div>
      <room style="trendy" size="moderate" temperature="comfortable" furnishings="spartan">
        <chat type="secure" action="discuss">
          <post>
            <textarea type="chat" id="chat_text"></textarea>
          </post>
          <br />
          <span id="chat_message">Message Sent!</span>
          <input id="lol" type="button" name="chat" value="Chat Now" onclick="chatBack(document.getElementById('chat_text').value);chat(document.getElementById('chat_text').value);return false;" />
        </chat>
      </room>
    </div>
    </body>
    </html>
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •