Hi guys..
I am no coder, but when I work on my site I can usually disect the stuff and get certain things to happen. Well, I am having trouble with this one. First of all here is the code:
<%
'open article image record
set air = Server.CreateObject("ADODB.Recordset")
sql="SELECT top 1 * from articleimages where id="&cms("articleimage")&""
air.Open sql,dconn
if air.bof and air.eof then
else
picurl="../editor/assets/article_images_200x200/" & air("filename")
if cms("articleimageloc")=1 then%>
<img class="squareright" alt="<%=air("alttext")%>" src="<%=picurl%>" <%if request.servervariables("script_name")="/default.asp" then%> usemap="#m_offers" <%end if%> >
<%end if%>
<%if cms("articleimageloc")=3 then%>
<img class="squareleft" alt="<%=air("alttext")%>" src="<%=picurl%>" <%if request.servervariables("script_name")="/default.asp" then%> usemap="#m_offers" <%end if%> >
<%end if%><%end if%>
<%
air.close
set air=nothing
%>
The logic for that code is basically "if the user has chosen an articleimage and the page we are talking about is "default.asp", then use the image map "m_offers"
Well, I want to make the image map be included in another page as well. That page is "/sec_gameinstructions.asp"
I have tried a few different things including "or" but I can't get the image map to work for both default.asp and sec_gameinstructions.asp
My question is what modifications do I need to make to this code so it knows that if the conditions are all met, and the page is "sec_gaminstructions.asp" that it should use "m_offers" as well?













LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks