|
Since there are multiple web pages in our web site, I decided to implement JavaScript within a footer .shtml file as follows:
<script type="text/javascript"> if (<function call to determine if we're running on the development server) { document.body.style.backgroundColor = 'yellow'; } |
Since every page in the web site includes the footer, then each page will have a yellow background when running on the development server.
<%
if lcDevelopmentServer
backgroundColor = "yellow"
else
backgroundColor = "initial"
endif
%>
<body style="background-color: <%=backgroundColor%>;">
|
FoxWeb Support Team support@foxweb.com email |
LOCAL llDevelopmentServer, lcDevelopmentServerllDevelopmentServer = DevelopmentServer()lcDevelopmentServer = TRANSFORM(m.llDevelopmentServer)Response.Write('llDevelopmentServer = ' + m.lcDevelopmentServer + '<br>')
PUBLIC glDevelopmentServer, gcDevelopmentServerglDevelopmentServer = DevelopmentServer()gcDevelopmentServer = TRANSFORM(m.glDevelopmentServer)
<script type="text/javascript">// alert('<%=lcDevelopmentServer%>');alert('<%=gcDevelopmentServer%>');</script>