You can use the following method to detect the agent is online or not.
CuteChat.ChatWebUtility.HasReadyAgents()
For example, in the file CuteSoft_Client\CuteChat\Support-Image-Button.js.aspx:
function WriteLiveSupportButton()
{
var ImageURL='<%= CuteChat.ChatWebUtility.HasReadyAgents()/*HasOnlineAgents()*/?URL_live_help_online_image:URL_live_help_offline_image %>';
ImageURL= "<img title=\"support chat\" src=\""+ImageURL+"\" border=0>";
// write the live support button to the page
document.write('<a href=\"###\" onclick=\"OpenLiveSupport()\">'+ImageURL+'</a>');
}
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx