chat box

Forum
Last Post
Threads / Messages

zhiichiro

Member
Member
Joined
Mar 23, 2009
Messages
106
Points
0
Mysidian Dollar
7,292
i want to put a chat box on index.php
but i dont know what kind of code to put, and where should i insert this.

please help me. i have 3 types of codes.
Code:
<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="200" height="305" src="http://www6.cbox.ws/box/?boxid=186880&boxtag=yxtxqs&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="200" height="75" src="http://www6.cbox.ws/box/?boxid=186880&boxtag=yxtxqs&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX -->

Code:
<script type="text/javascript">
function popcbox() {
  cboxwin = window.open("","Cbox","width=200,height=380,toolbar=no,scrollbars=no,status=no,resizable=yes");
  cboxwin.document.write('<html><head><title>Cbox</title></head><frameset rows="*,75" frameborder="0" framespacing="0">');
cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www6.cbox.ws/box/?boxid=186880&boxtag=yxtxqs&sec=main" noresize="true" scrolling="auto" name="cboxmain" style="border:#DBE2ED 1px solid;"/>');
cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www6.cbox.ws/box/?boxid=186880&boxtag=yxtxqs&sec=form" noresize="true" scrolling="no" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px"/></frameset>');  cboxwin.document.write('<noframes>Cbox needs frames!</noframes></html>');
  try {
    x = screen.width;
    y = screen.height;
    cboxwin.moveTo(Math.max((x/2)-100, 0), Math.max((y/3)-190));
  } catch (e) {};
}
</script>


<a href="JavaScript:popcbox();">Pop up my Cbox</a>
Code:
<script language="JavaScript" src="http://cbox.co.za/box/js.php?boxid=186880&boxtag=yxtxqs&srv=6&width=200&heightmain=305&heightform=75&frameborder=1&bordercolor=%23DBE2ED"></script>
 
The problem with most pre-built chat boxes, is that they constantly refresh your page, and depending on how many people visit your site, even with a mimimum of 50, 50 pages refreshing at once, isn't good for say a free server, and even some pay to use servers.
 
The only one that I know of that runs without killing your CPU is one operated on ZEND and only available for Joomla sites
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top