Location: PHPKode > scripts > TJSChat > tjschat/principal.php
<?php
  include "param.php";
?>
<HTML>
<HEAD>
   <link REL='StyleSheet' TYPE='text/css' HREF='chat.css'>
</HEAD>
<BODY  onLoad='top.load_main=1'>
<BR>


<?php print($param["text_intro"]); 

$style1="position:absolute;width:".($param["chat_form_width"]+2)."px;height:".($param["chat_form_height"]+2)."px;top:".($param["chat_form_top"])."px;left:".$param["chat_form_left"]."px;border-style:solid;border-width:1px;border-color:".$param["chat_form_border_color"].";background-Color:".$param["chat_bg_color"];

$style2="position:absolute;width:".$param["chat_form_width"]."px;height:".$param["chat_form_height"]."px;top:0px;left:0px;background-Color:".$param["chat_bg_color"].";clip:rect(0 ".$param["chat_form_width"]." ".$param["chat_form_height"]." 0)";

$style3="position:absolute;width:".$param["chat_form_width"]."px;height:".$param["chat_form_height"]."px;top:".($param["chat_form_top"]+$param["chat_form_height"]+5)."px;left:".$param["chat_form_left"]."px;"

?>

<DIV style="<?php print($style1); ?>">
   <DIV style="<?php print($style2); ?>">
      <DIV id="layermsg" style="position:absolute;top:0px;left:0px;" >
         <?php print($param["text_connecting"]); ?>
      </DIV>
   </DIV>
</DIV>

<DIV id="layerform" style="<?php print($style3); ?>">
<SCRIPT language=javascript>
function ChangeStyle(f) {
   f.msg.style.color=f.color.options[f.color.selectedIndex].value;
   f.msg.focus();
}
function AddText(text) {
   f=document.forms[0];
   f.msg.value=f.msg.value+text;
   f.msg.focus();
}
</SCRIPT>
<FORM name=post onSubmit="top.SendMsg(this); return false;">
   <?php print($param["text_your_msg"]); ?> <INPUT type=text name=msg size=40 maxlength=<? print($param["chat_msg_max_size"]); ?> style="width:<? print($param["chat_form_width"]-200);?>px;background-Color:<?php print($param["chat_bg_color"]); ?> ">
   <?php
      print("  <SELECT name=color style='background-Color:".$param["chat_bg_color"].";color:".$param["chat_msg_color1"]."' onChange='ChangeStyle(this.form)'>");
      for ($i=1;$i<=$param["chat_msg_nb_colors"];$i++) {
         print("<OPTION style='color:".$param["chat_msg_color".$i]."' value='".$param["chat_msg_color".$i]."'>".$param["chat_msg_color".$i]."</OPTION>");
      }
      print("  </SELECT><BR>");
      for ($i=1;$i<=$param["chat_nb_smileys"];$i++) {
         print("<A href='javascript:AddText(\" ".$param["chat_smiley".$i]." \")'>".$param["chat_smiley_gif".$i]."</A> &nbsp;"); 
      }
   ?>
</FORM>
</DIV>
</BODY></HTML>
Return current item: TJSChat