Making the HelpOut tab disappear when all operators are offline

How do I make the HelpOut tab disappear when all operators are offline?

To accomplish this please use the following script within the same pages where the HelpOut tab is:

 

<script type="text/javascript">
        
        function LHN_button_onLoad() {
       
            if (bLHNOnline == 0) {
                document.getElementById('lhn_help_btn').style.display = 'none';
            }
            else{
                document.getElementById('lhn_help_btn').style.display = 'block';
            }
        }
</script> 

 

 

 

There are a variety of other ways to customize the HelpOut Tab:
http://help.livehelpnow.net/article/1/2205/installation-as-a-tab-slideout

Related articles