Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link problem - imagemaps

Status
Not open for further replies.

jasek78

Programmer
Nov 5, 2001
298
US
I have a webpage (@ ) that dynamically includes an include file (HTML text) and an image. 2 of the images have links that need to be clickable, and they used to work, but I reworked the website graphics and layers and now the links don't work...

Any clues why???

Thanks in advance...

Jason

Here's a code snippet. Any questions about it just ask.

Code:
<script language=&quot;JavaScript&quot;>
<!--
function MM_openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>

<map name = &quot;CamMap&quot;>
<area shape=&quot;rect&quot; coords=&quot;180,265,250,275&quot; href=&quot;#&quot; onClick=&quot;MM_openWindow('[URL unfurl="true"]http://www.camtronics.com','camWindow','toolbar=yes,menubar=yes,status=yes,location=yes,width=750,height=650[/URL] screenX=10, screenY=10,top=10, left=10')&quot;>
</map>


<!-- BEGIN BACKGROUND -->

<div id=&quot;back1&quot; style=&quot;position:absolute; left: 0px; top: 0px; height:530px; width:700px; z-index:10&quot;>
<table border=0 cellspacing=0 cellpadding=0>
<tr><td><img src=&quot;images/head.jpg&quot; width=700 height=71 border=0 vspace=&quot;0&quot; hspace=&quot;0&quot;></td></tr>
<tr><td><img src=&quot;images/btn/btnbar_top.gif&quot; width=700 height=20 usemap=&quot;#topbuttons&quot; name=&quot;head&quot; border=0 vspace=&quot;0&quot; hspace=&quot;0&quot;></td></tr>
<tr width=&quot;700&quot;><td><img src=&quot;images/body.jpg&quot; width=46 height=336 vspace=&quot;0&quot; hspace=&quot;0&quot;></td></tr>
<tr><td><img src=&quot;images/btn/btnbar_btm.gif&quot; width=700 height=18 usemap=&quot;#botbuttons&quot; name=&quot;foot&quot; border=0 vspace=&quot;0&quot; hspace=&quot;0&quot;></td></tr>
<tr><td><img src=&quot;images/foot.jpg&quot; width=700 height=75 vspace=&quot;0&quot; hspace=&quot;0&quot;></td></tr>
</table>
</div>

<!-- END BACKGROUND -->




<div id=&quot;piclayer&quot; style=&quot;position:absolute; top:110px; left:410px; z-index=20;&quot;>

<% if (request.querystring(&quot;inc&quot;).count > 0) and (request.querystring(&quot;inc&quot;) = 18) then %>

	<img src=&quot;<% Response.write strImage %>&quot; usemap=&quot;#CamMap&quot; border=0>

<% Else if (request.querystring(&quot;inc&quot;).count > 0) and (request.querystring(&quot;inc&quot;) = 2) then %>

	<img src=&quot;<% Response.write strImage %>&quot; usemap=&quot;#PhilMap&quot; border=0>

<% Else %>

	<img src=&quot;<% Response.write strImage %>&quot;

<% End if %>
<% End if %>
</div>
 
It looks like under certain circumstances the ASP snippet will write an
Code:
<img>
tag that calls for the image map named PhilMap, but this map is never defined.
 
I did not include the entire chunk of code.

The code works, in IE only, if I put the image on a layer above (z-index) the rest of the page.

You can view the website at the link I gave above.

PhilMap is defined (right after 'CamMap') as:
Code:
<map name = &quot;PhilMap&quot;> 
<area shape=&quot;rect&quot; coords=&quot;120,305,280,325&quot; href=&quot;innovativa.asp?inc=21&quot;>
</map>
the link on the CamMap needs to open a new window, the PhilMap link opens up a different webpage in the same window.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top