Location: PHPKode > scripts > TJSChat > tjschat/you.php
<?php
  include "param.php";
  include "f_chat.php";
?>
<HTML><HEAD>
<link REL='StyleSheet' TYPE='text/css' HREF='chat.css'>
<SCRIPT language=javascript>
// D'autres scripts sur http://www.toutjavascript.com
var H=new Object;
<?php
print(" var d=new Date();");
print(" d.setYear(".date("Y").");");
print(" d.setMonth(".date("m").");");
print(" d.setDate(".date("d").");");
print(" d.setHours(".date("H").");");
print(" d.setMinutes(".date("i").");");
print(" d.setSeconds(".date("s").");");
?>
var local=new Date();
var delta=d.getTime()-local.getTime();
function AffHorloge() {
   d=new Date();
   d.setSeconds(d.getSeconds()+delta/1000);
   var heure=d.getHours();
   var min=d.getMinutes();
   var sec=d.getSeconds();
   if (heure<10) heure="0"+heure;
   if (min<10) min="0"+min;
   if (sec<10) sec="0"+sec;
   contenu="<SPAN style='"+H.CSS+"'>"+heure+":"+min+":"+sec+"</SPAN>";

   if (document.layers) {
      document.layers["horloge"].document.write(contenu);
      document.layers["horloge"].document.close();
   }
   if (document.all) {horloge.innerHTML=contenu;}
   setTimeout("AffHorloge()",1000);
}

function InitHorloge(X,Y,CSS) {
   H.CSS=CSS;H.X=X;H.Y=Y;
   if (document.all) {
      document.write("<DIV id='horloge' style='position:absolute;top:"+Y+";left:"+X+";visibility:show'></DIV>");
      AffHorloge();
   }
   if (document.layers) {
      document.write("<LAYER name='horloge' top='"+Y+"' left='"+X+"' visibility='show'></LAYER>");
      setTimeout('AffHorloge()',200);
   }
}
</SCRIPT>
</HEAD>
<BODY>
<BR>
<?php print($param["text_server"]); ?> <BR>
<?php print($param["text_user"]); ?> <?php print($_GET['user']); ?><BR>
<?php print($param["text_connected"]); ?>
<?php print($param["text_invite"]); ?><BR>
<SCRIPT language="javascript">
   InitHorloge(60,17,"<?php print($param["chat_style_hour"]); ?>"); 
</SCRIPT>
<?php
  print("<A href='javascript:top.Quitter()' target=_top>".$param["text_quit"]."</A>");
?>
</BODY></HTML>
Return current item: TJSChat