]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/instant_messenger.html
* More updates to instant messenger:
[citadel.git] / webcit / static / instant_messenger.html
index 57666ac8cc8e3d620e67bb4cc057c1f82092f7c9..87f9ab533e7189db3c97409501a8e818e23c8a16 100644 (file)
@@ -4,7 +4,7 @@
        <script type="text/javascript" src="prototype.js"></script>
        <script type="text/javascript" src="wclib.js"></script>
 </head>
-<body>
+<body onLoad='FetchNewMsgs();'>
 
 <div id="thetop" style="position:fixed;width:100%;height:15%;top:0%;left:0%">
 <div id="spacer1" style="background:#aaaaaa"><br></div>
@@ -115,13 +115,14 @@ function ShowNewMsg(gexp_xmlresponse) {
                        + '<div id=\"tab_' + which_div + '\" style=\"display:none;cursor:pointer\">'
                        + '<div id=\"' + which_div + '\">'
                        + '</div>'
-                       + '<div id=\"response_' + which_div + '\">'
+                       + '<div id=\"response_' + which_div + '\" style=\"background:#ddddee\">'
                        + '<br><form method=\"post\" action=\"null\" name=\"sendform_' + which_div + '\" '
                        + 'onSubmit=\"return SendSomething(\'' + which_div + '\', \'sendform_'
                        + which_div + '\', \'' + sender + '\');\">'
-                       + '<input type=\"text\" size=\"80\" maxlength=\"80\" name=\"sendthis\">'
+                       + '<img src=\"citadelchat_16x.gif\">&nbsp;'
+                       + '<input type=\"text\" size=\"72\" maxlength=\"72\" name=\"sendthis\">'
                        + '</form>'
-                       + '</div>'
+                       + '<br></div>'
                        + '</div>\n';
                $('tab_bar').innerHTML =
                          $('tab_bar').innerHTML
@@ -196,7 +197,7 @@ function GrabMyName(greg_xmlresponse) {
 
 
 // Cause FetchNewMsgs() to be called periodically.
-new PeriodicalExecuter(FetchNewMsgs, 3);
+new PeriodicalExecuter(FetchNewMsgs, 5);
 
 </script>