API

$zopim.livechat.button

Represents the live chat button

Functions

hideHides the chat button
showShows the chat button
setOffsetBottomAdds additional spacing below the button
setPositionSets the position of the button, ‘bl’ for bottom left, ‘br’ for bottom right
setHideWhenOfflineHide the button when offline

Example

<h3>Docking</h3>
<a href="javascript:$zopim.livechat.button.setPosition('ml')">Left</a> |
<a href="javascript:$zopim.livechat.button.setPosition('mr')">Right</a>
<h3>Bottom Spacing</h3>
<a href="javascript:$zopim.livechat.button.setOffsetBottom(32)">Leave some space</a> |
<a href="javascript:$zopim.livechat.button.setOffsetBottom(0)">Leave no space</a>