Preview:

One Chat support is available from 8:00am to 5:00pm AZ time. Before you contact support please contact your sales rep..

Support@onechat.com

 

Header Login

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Page</title>
</head>
<body>

Click to Copy
<div align="left"><a href="http://chat.onechat.com/admin/adminLogin.aspx" target="_blank"><strong>Admin Login</strong></a> | <a href="http://chat.onechat.com/agentlogin.aspx" target="_blank"><strong>Agent Login</strong></a></div>
Click to Copy

</body>
</html>

Floating Button

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Page</title>
</head>
<body>

Click to Copy
<div id="floatdiv" style="position:absolute; right:10px; top:31px; background:#FFFFFF; border:0px solid #2266AA; left: 568px; width: 151px; height: 77px;"><a href="javascript: void(0)" onclick="window.open('http://chat.onehat.com/sample.aspx?company_id=1' , 'windowname2', 'width=450, \ height=458, \ directories=no, \ location=no, \ menubar=no, \ resizable=no, \ scrollbars=no, \ status=no, \ toolbar=no'); return false;"><img src="http://www.onechat.com/images/images/chat_button.gif" border="0" /></a>
</div>
<script type="text/javascript"><!--
var floatingMenuId = 'floatdiv';
var floatingMenu =
{
targetX: -250,
targetY: 10,

hasInner: typeof(window.innerWidth) == 'number',
hasElement: document.documentElement
&& document.documentElement.clientWidth,

menu:
document.getElementById
? document.getElementById(floatingMenuId)
: document.all
? document.all[floatingMenuId]
: document.layers[floatingMenuId]
};

floatingMenu.move = function ()
{
if (document.layers)
{
floatingMenu.menu.left = floatingMenu.nextX;
floatingMenu.menu.top = floatingMenu.nextY;
}
else
{
floatingMenu.menu.style.left = floatingMenu.nextX + 'px';
floatingMenu.menu.style.top = floatingMenu.nextY + 'px';
}
}

floatingMenu.computeShifts = function ()
{
var de = document.documentElement;

floatingMenu.shiftX =
floatingMenu.hasInner
? pageXOffset
: floatingMenu.hasElement
? de.scrollLeft
: document.body.scrollLeft;
if (floatingMenu.targetX < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftX +=
de.clientWidth > window.innerWidth
? window.innerWidth
: de.clientWidth
}
else
{
floatingMenu.shiftX +=
floatingMenu.hasElement
? de.clientWidth
: floatingMenu.hasInner
? window.innerWidth
: document.body.clientWidth;
}
}

floatingMenu.shiftY =
floatingMenu.hasInner
? pageYOffset
: floatingMenu.hasElement
? de.scrollTop
: document.body.scrollTop;
if (floatingMenu.targetY < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftY +=
de.clientHeight > window.innerHeight
? window.innerHeight
: de.clientHeight
}
else
{
floatingMenu.shiftY +=
floatingMenu.hasElement
? document.documentElement.clientHeight
: floatingMenu.hasInner
? window.innerHeight
: document.body.clientHeight;
}
}
}

floatingMenu.doFloat = function()
{
var stepX, stepY;

floatingMenu.computeShifts();

stepX = (floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX) * .07;
if (Math.abs(stepX) < .5)
{
stepX = floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX;
}

stepY = (floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY) * .07;
if (Math.abs(stepY) < .5)
{
stepY = floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY;
}

if (Math.abs(stepX) > 0 ||
Math.abs(stepY) > 0)
{
floatingMenu.nextX += stepX;
floatingMenu.nextY += stepY;
floatingMenu.move();
}

setTimeout('floatingMenu.doFloat()', 20);
};

// addEvent designed by Aaron Moore
floatingMenu.addEvent = function(element, listener, handler)
{
if(typeof element[listener] != 'function' ||
typeof element[listener + '_num'] == 'undefined')
{
element[listener + '_num'] = 0;
if (typeof element[listener] == 'function')
{
element[listener + 0] = element[listener];
element[listener + '_num']++;
}
element[listener] = function(e)
{
var r = true;
e = (e) ? e : window.event;
for(var i = element[listener + '_num'] -1; i >= 0; i--)
{
if(element[listener + i](e) == false)
r = false;
}
return r;
}
}

//if handler is not already stored, assign it
for(var i = 0; i < element[listener + '_num']; i++)
if(element[listener + i] == handler)
return;
element[listener + element[listener + '_num']] = handler;
element[listener + '_num']++;
};

floatingMenu.init = function()
{
floatingMenu.initSecondary();
floatingMenu.doFloat();
};

// Some browsers init scrollbars only after
// full document load.
floatingMenu.initSecondary = function()
{
floatingMenu.computeShifts();
floatingMenu.nextX = floatingMenu.shiftX +
floatingMenu.targetX;
floatingMenu.nextY = floatingMenu.shiftY +
floatingMenu.targetY;
floatingMenu.move();
}

if (document.layers)
floatingMenu.addEvent(window, 'onload', floatingMenu.init);
else
{
floatingMenu.init();
floatingMenu.addEvent(window, 'onload',
floatingMenu.initSecondary);
}
//-->
</script>

Click to Copy

</body>
</html>

Exit Chat

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Page</title>

Click to Copy

<SCRIPT LANGUAGE="JavaScript">
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function preventClose() {
MM_showHideLayers('floatdiv','','show')
return "A Customer Service Agent would like to speak with you.";

}
window.onbeforeunload = preventClose;

</script>

Click to Copy

</head>
<body>

Click to Copy

<div id="floatdiv" style="position:absolute; right:814px; top:56px; background:#FFFFFF; border:0px solid #2266AA; width: 256; height: 190; visibility: hidden;">
<table border="0" cellpadding="0" cellspacing="0" width="265">
<!-- fwtable fwsrc="Untitled" fwpage="Page 1" fwbase="popup01.gif" fwstyle="Dreamweaver" fwdocid = "184885766" fwnested="0" -->
<tr>
<td><img src="http://www.onechat.com/images/spacer.gif" width="59" height="1" border="0" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="58" height="1" border="0" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="27" height="1" border="0" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="60" height="1" border="0" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="37" height="1" border="0" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="24" height="1" border="0" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>

<tr>
<td colspan="5"><img name="popup01_r1_c1" src="http://www.onechat.com/images/popup01_r1_c1.gif" width="241" height="18" border="0" id="popup01_r1_c1" alt="" /></td>
<td><a href="#"><img src="http://www.onechat.com/images/popup01_r1_c6.gif" alt="" name="popup01_r1_c6" width="24" height="18" border="0" id="popup01_r1_c6" onclick="MM_showHideLayers('floatdiv','','hide')" /></a></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="1" height="18" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="6"><img name="popup01_r2_c1" src="http://www.onechat.com/images/popup01_r2_c1.gif" width="265" height="125" border="0" id="popup01_r2_c1" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="1" height="125" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="2"><img name="popup01_r3_c1" src="http://www.onechat.com/images/popup01_r3_c1.gif" width="59" height="47" border="0" id="popup01_r3_c1" alt="" /></td>
<td><a href="#"><img src="http://www.onechat.com/images/popup01_r3_c2.gif" alt="" name="popup01_r3_c2" width="58" height="17" border="0" id="popup01_r3_c2" onclick="MM_openBrWindow('http://chat.onehat.com/sample.aspx?company_id=1','','width=450,height=458')" /></a></td>
<td rowspan="2"><img name="popup01_r3_c3" src="http://www.onechat.com/images/popup01_r3_c3.gif" width="27" height="47" border="0" id="popup01_r3_c3" alt="" /></td>
<td><a href="#"><img src="http://www.onechat.com/images/popup01_r3_c4.gif" alt="" name="popup01_r3_c4" width="60" height="17" border="0" id="popup01_r3_c4" onclick="MM_showHideLayers('floatdiv','','hide')" /></a></td>
<td rowspan="2" colspan="2"><img name="popup01_r3_c5" src="http://www.onechat.com/images/popup01_r3_c5.gif" width="61" height="47" border="0" id="popup01_r3_c5" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="1" height="17" border="0" alt="" /></td>
</tr>
<tr>
<td><img name="popup01_r4_c2" src="http://www.onechat.com/images/popup01_r4_c2.gif" width="58" height="30" border="0" id="popup01_r4_c2" alt="" /></td>
<td><img name="popup01_r4_c4" src="http://www.onechat.com/images/popup01_r4_c4.gif" width="60" height="30" border="0" id="popup01_r4_c4" alt="" /></td>
<td><img src="http://www.onechat.com/images/spacer.gif" width="1" height="30" border="0" alt="" /></td>
</tr>
</table>
</div>
<script type="text/javascript"><!--
var winW = 630, winH = 460;

if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
winW = window.innerWidth;
// winH = window.innerHeight;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW = document.body.offsetWidth
winW = winW /2-132.5
// winH = document.body.offsetHeight
}
}

//document.write(
// "Window width = "+winW+"<br>"
//+"Window height = "+winH
//)

var floatingMenuId = 'floatdiv';
var floatingMenu =
{
targetX: winW,
targetY: 100,

hasInner: typeof(window.innerWidth) == 'number',
hasElement: document.documentElement
&& document.documentElement.clientWidth,

menu:
document.getElementById
? document.getElementById(floatingMenuId)
: document.all
? document.all[floatingMenuId]
: document.layers[floatingMenuId]
};

floatingMenu.move = function ()
{
if (document.layers)
{
floatingMenu.menu.left = floatingMenu.nextX;
floatingMenu.menu.top = floatingMenu.nextY;
}
else
{
floatingMenu.menu.style.left = floatingMenu.nextX + 'px';
floatingMenu.menu.style.top = floatingMenu.nextY + 'px';
}
}

floatingMenu.computeShifts = function ()
{
var de = document.documentElement;

floatingMenu.shiftX =
floatingMenu.hasInner
? pageXOffset
: floatingMenu.hasElement
? de.scrollLeft
: document.body.scrollLeft;
if (floatingMenu.targetX < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftX +=
de.clientWidth > window.innerWidth
? window.innerWidth
: de.clientWidth
}
else
{
floatingMenu.shiftX +=
floatingMenu.hasElement
? de.clientWidth
: floatingMenu.hasInner
? window.innerWidth
: document.body.clientWidth;
}
}

floatingMenu.shiftY =
floatingMenu.hasInner
? pageYOffset
: floatingMenu.hasElement
? de.scrollTop
: document.body.scrollTop;
if (floatingMenu.targetY < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftY +=
de.clientHeight > window.innerHeight
? window.innerHeight
: de.clientHeight
}
else
{
floatingMenu.shiftY +=
floatingMenu.hasElement
? document.documentElement.clientHeight
: floatingMenu.hasInner
? window.innerHeight
: document.body.clientHeight;
}
}
}

floatingMenu.doFloat = function()
{
var stepX, stepY;

floatingMenu.computeShifts();

stepX = (floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX) * .07;
if (Math.abs(stepX) < .5)
{
stepX = floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX;
}

stepY = (floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY) * .07;
if (Math.abs(stepY) < .5)
{
stepY = floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY;
}

if (Math.abs(stepX) > 0 ||
Math.abs(stepY) > 0)
{
floatingMenu.nextX += stepX;
floatingMenu.nextY += stepY;
floatingMenu.move();
}

setTimeout('floatingMenu.doFloat()', 20);
};

// addEvent designed by Aaron Moore
floatingMenu.addEvent = function(element, listener, handler)
{
if(typeof element[listener] != 'function' ||
typeof element[listener + '_num'] == 'undefined')
{
element[listener + '_num'] = 0;

if (typeof element[listener] == 'function')
{
element[listener + 0] = element[listener];
element[listener + '_num']++;
}
element[listener] = function(e)
{
var r = true;
e = (e) ? e : window.event;
for(var i = element[listener + '_num'] -1; i >= 0; i--)
{
if(element[listener + i](e) == false)
r = false;
}
return r;
}
}

//if handler is not already stored, assign it
for(var i = 0; i < element[listener + '_num']; i++)
if(element[listener + i] == handler)
return;
element[listener + element[listener + '_num']] = handler;
element[listener + '_num']++;
};

floatingMenu.init = function()
{
floatingMenu.initSecondary();
floatingMenu.doFloat();
};

// Some browsers init scrollbars only after
// full document load.
floatingMenu.initSecondary = function()
{
floatingMenu.computeShifts();
floatingMenu.nextX = floatingMenu.shiftX +
floatingMenu.targetX;
floatingMenu.nextY = floatingMenu.shiftY +
floatingMenu.targetY;
floatingMenu.move();
}

if (document.layers)
floatingMenu.addEvent(window, 'onload', floatingMenu.init);
else
{
floatingMenu.init();
floatingMenu.addEvent(window, 'onload',
floatingMenu.initSecondary);
}

//-->
</script>

Click to Copy

</body>
</html>

Timed Chat Popup

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Page</title>

Click to Copy

<SCRIPT LANGUAGE="JavaScript">
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function preventClose() {
MM_showHideLayers('floatdiv','','show')
return "A Customer Service Agent would like to speak with you.";

}
window.onbeforeunload = preventClose;

</script>

Click to Copy

</head>
<body>

Click to Copy
<script type="text/javascript">
<!--
var winW = 630, winH = 460;

if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
winW = window.innerWidth;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW = document.body.offsetWidth
winW = winW /2-132.5
}
}

var floatingMenuId = 'floatdiv';
var floatingMenu =
{
targetX: winW,
targetY: 100,

hasInner: typeof(window.innerWidth) == 'number',
hasElement: document.documentElement
&& document.documentElement.clientWidth,

menu:
document.getElementById
? document.getElementById(floatingMenuId)
: document.all
? document.all[floatingMenuId]
: document.layers[floatingMenuId]
};

floatingMenu.move = function ()
{
if (document.layers)
{
floatingMenu.menu.left = floatingMenu.nextX;
floatingMenu.menu.top = floatingMenu.nextY;
}
else
{
floatingMenu.menu.style.left = floatingMenu.nextX + 'px';
floatingMenu.menu.style.top = floatingMenu.nextY + 'px';
}
}

floatingMenu.computeShifts = function ()
{
var de = document.documentElement;

floatingMenu.shiftX =
floatingMenu.hasInner
? pageXOffset
: floatingMenu.hasElement
? de.scrollLeft
: document.body.scrollLeft;
if (floatingMenu.targetX < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
floatingMenu.shiftX +=
de.clientWidth > window.innerWidth
? window.innerWidth
: de.clientWidth
}
else
{
floatingMenu.shiftX +=
floatingMenu.hasElement
? de.clientWidth
: floatingMenu.hasInner
? window.innerWidth
: document.body.clientWidth;
}
}

floatingMenu.shiftY =
floatingMenu.hasInner
? pageYOffset
: floatingMenu.hasElement
? de.scrollTop
: document.body.scrollTop;
if (floatingMenu.targetY < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
floatingMenu.shiftY +=
de.clientHeight > window.innerHeight
? window.innerHeight
: de.clientHeight
}
else
{
floatingMenu.shiftY +=
floatingMenu.hasElement
? document.documentElement.clientHeight
: floatingMenu.hasInner
? window.innerHeight
: document.body.clientHeight;
}
}
}

floatingMenu.doFloat = function()
{
var stepX, stepY;

floatingMenu.computeShifts();

stepX = (floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX) * .07;
if (Math.abs(stepX) < .5)
{
stepX = floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX;
}

stepY = (floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY) * .07;
if (Math.abs(stepY) < .5)
{
stepY = floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY;
}

if (Math.abs(stepX) > 0 ||
Math.abs(stepY) > 0)
{
floatingMenu.nextX += stepX;
floatingMenu.nextY += stepY;
floatingMenu.move();
}

setTimeout('floatingMenu.doFloat()', 20);
};

floatingMenu.addEvent = function(element, listener, handler)
{
if(typeof element[listener] != 'function' ||
typeof element[listener + '_num'] == 'undefined')
{
element[listener + '_num'] = 0;

if (typeof element[listener] == 'function')
{
element[listener + 0] = element[listener];
element[listener + '_num']++;
}
element[listener] = function(e)
{
var r = true;
e = (e) ? e : window.event;
for(var i = element[listener + '_num'] -1; i >= 0; i--)
{
if(element[listener + i](e) == false)
r = false;
}
return r;
}
}

for(var i = 0; i < element[listener + '_num']; i++)
if(element[listener + i] == handler)
return;
element[listener + element[listener + '_num']] = handler;
element[listener + '_num']++;
};

floatingMenu.init = function()
{
floatingMenu.initSecondary();
floatingMenu.doFloat();
};

floatingMenu.initSecondary = function()
{
floatingMenu.computeShifts();
floatingMenu.nextX = floatingMenu.shiftX +
floatingMenu.targetX;
floatingMenu.nextY = floatingMenu.shiftY +
floatingMenu.targetY;
floatingMenu.move();
}

if (document.layers)
floatingMenu.addEvent(window, 'onload', floatingMenu.init);
else
{
floatingMenu.init();
floatingMenu.addEvent(window, 'onload',
floatingMenu.initSecondary);
}

//-->
</script>

Click to Copy

</body>
</html>

Install Directions: