123 Live Help Chat FAQ

"online/offline" button

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.

Following code should be inserted into <head> tags

<!----------------- 123livehelp head code begin --------------------->
<link rel="stylesheet" href="http://www.yourdomain.com/css/style.css" type="text/css" />
<script language="javascript" src="http://www.yourdomain.com/live_status.js"></script>
<script language="javascript" src="http://www.yourdomain.com/123livehelp.js"></script>
<!----------------- 123livehelp head code end --------------------->

Following code should be inserted into <body> tags
<!----------------- 123livehelp body code begin --------------------->
<script language="javascript">
var button_type=BUTTON_TYPE_IMAGE;
var online_display="http://www.yourdomain.com/img/online.jpg";
var offline_display="http://www.yourdomain.com/img/offline.jpg";
var button_assign_type=BUTTON_ASSIGN_NULL;
var chat_window_skin="violet";
var chat_window_width=495;
var chat_window_height=440;
var enable_invitation=true;
var invitation_popup_type=INVIATION_STYLE_SLIDEDOWN;
var invitation_skin=INVIATION_STYLE_BROWN;
var invitation_dept_id=1;
var define_url = "http://www.yourdomain.com";
<!----------------- 123livehelp body code end --------------------->

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>
Video Tour DownloadBuy License NowRent Hosting15-day Trial Hosting for 123 Live Help

About Us | Contact us | Company Blog | Partnership | Affiliate | Forum | Privacy policy | Terms of Use | SiteMap | Links

Call Sales Now! USA 408-728-6398, UK +44-20-3286-1986, HK +852-8121-1988

Share 123 Flash Chat:

Copyright © TopCMM Software Limited 2001-2016 All Rights Reserved.

Error: Table '123flashchat201311.ip_countries' doesn't exist