123 Live Help Server Software
123 live help chat server softwareabout TopCMM Software Corp. contact TopCMM Software Corp. sitemap of 123 Live Help Website
 
 

How to display "online/offline" button in my webpage?

1) Including following javascript code into your webpage at the proper location will enable the online/offline button there.

<script language="javascript" src="live_status.js"></script>
<script language="javascript">
function openNormalClient()
{
var win = window.open("client.html", "_123livehelp_normalclientdemo", "resizable=1, width=495,height=376,status=1");
}
var htmlcode = (s == 1) ? "img/online.gif" : "img/offline.gif";
htmlcode = "<a href='client.html' target='_123livehelp_normalclientdemo' onclick='openNormalClient()'><img src='" + htmlcode + "' border='0'></a>";
document.write(htmlcode);
</script>

2) Among them, the "live_status.js" will be modified status at real-time by the live help java server.
and the path of the "live_status.js" should be predefined in "default.xml".

By default the setting section goes like this:
<!-- The status of the staff( online or offline) will be record in a file if enable= "On",
if enable="Off", then no record will be generated. By default it's "On".
live-status-file: The path name of the staff status record file.
By default it's "", indicating default html directory, and the name of the record file is "live_status.js". -->
<live-status-file enable="on"></live-status-file>


For example, if your apache is installed in the directory "/var/www/html", you can then configure the path to:
<live-status-file enable="on">/var/www/html/live_status.js</live-status-file>

 
  Family Software: 123 Flash Chat Server Software
Full-featured and powerful java chat server plus flash chat client.
High load concurrent users supported.