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!

Image Map not working in FireFox

Status
Not open for further replies.

jcfullbr

Technical User
Feb 4, 2009
2
US
The following image map works in IE, but in firefox my cursor treats it like hyperlinks, but at the bottom of the screen it says ".../message file"

Code:
<html>
<body bgcolor="#000000">
<img src="nav.jpg" alt=Navigation Image Map" style="border-style: none" usemap="#toc" />
<map name="toc" id="toc">
<area href="message file" target="content" shape="default" />
<area target="content" shape="rect" coords="14, 80, 121, 115" href="initialcontent.html" />
</map>
</body>
</html>

All of the other forums/sites suggested adding the name="toc" after <map, but that didn't fix it.

Any ideas?

Thanks
Jeremy
 
Well basically this:
Code:
<area href="message file" target="content" shape="default" />

Is not a valid location. Regardless, it actually works but covers your entire map since you have no dimensions defined.
Move your mouse around your map and the link will be "message file"

So your entire map is reduced to being a link to "message file" which of course is not a valid location.






----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks for pointing that out, works great now!

Jeremy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top