| |
|
ASP
Sample - XpertChat integration on a ASP site
This sample shows how to create a
page to set live support online and offline, sample_page.asp is a page to open
the support window if support available.
1. Online and IP Publication
Sample_online.asp
<%
Application("LiveSupportIP") =
Request.ServerVariables("REMOTE_ADDR")
Response.Write Application("LiveSupportIP")
%>
Sample_offline.asp
<%
Application("LiveSupportIP") =
"OFFLINE"
Response.Write Application("LiveSupportIP")
%>
Sample_page.asp
<%
if
Application("LiveSupport") <> "N/A" then
%>
<b></b></font><b><font
face="Arial" color="#FFCC00">►
</font><a href="#" onclick="open('http://<% Response.Write
Application("LiveSupportIP") %>/cws_exec$?GoText=
','LiveAssist','resizable=no,scrollbars=no,width=440,height=300')"
style="text-decoration: none">
<font face="Verdana" color="#FFCC00" size="2">Live Support</font></a></b></p>
<p style="margin-left: 10; margin-top: 10; margin-bottom: 0"> </td>
<% end if %>
ou
<b></b></font><b><font
face="Arial" color="#FFCC00">►
</font><a href="#" onclick="open('http://<% Response.Write
Application("LiveSupportIP") %>/cws_exec$?GoText=
','LiveAssist','resizable=no,scrollbars=no,width=440,height=300')"
style="text-decoration: none">
<font face="Verdana" color="#FFCC00" size="2">Live Support</font></a></b></p>
.
|