Sometimes there is a need to create a contact routing page hosting several live chat buttons on one page linking and connecting customers to different departments. Here is how this can be accomplished:
-
Add the following JavaScript code on the web page which will host multiple department linked buttons.
function OpenZaZaChat(dep)
{
var wleft = (screen.width - 580-32) / 2;
var wtop = (screen.height - 420-96) / 2;
window.open('http://zazachat.zazasoftware.com/livechatclient/livechatvisitor.aspx?d=' + dep + '&zzwindow=WINDOW_ID&zazac=YOUR_ACCOUNT_ID,'zazachat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); }
-
For each chat button which will be linking customers to a particular live chat department insert the following code:
<a href="javascript:void(0)" onclick="OpenZaZaChat(DEPARTMENT_ID);"><img alt="Live Chat Support" id=zazachatimg1 border=0 nocache src="http://zazachat.zazaspftware.com/LiveChatClient/functions/imageserver.ashx?zazac=YOUR_ACCOUNT_ID&zimg=IMG_ID&t=f"></a>
Please substitute the following fields with fields applicable to your account:
YOUR_ACCOUNT_ID - Your ZaZaChat account ID as displayed in the operator panel without the leading "Z". Only number portion of the account ID should be used.
IMG_ID - The live chat button image which you'd like to display.
DEPARTMENT_ID - The department id which the customer will be connected with when this particular button is clicked on.
WINDOW_ID - The live chat window which will be presented to the visitor once the button is clicked. Enter 0 to display the default chat window for your account.