PDA

View Full Version : Imagemaps & Netscape



R. K. Raja
December 18th, 2001, 12:48
I have a problem. I just found out that the imagemap I was using for a site I made does not work when it is view with Netscape.

This is what I used:




<map name="top">
<area href="home.html" shape="rect" coords="28, 89, 105, 71">
<area href="dinelite.html" shape="rect" coords="115, 90, 227, 71">
<area href="ordering.html" shape="rect" coords="230, 88, 337, 71">
<area href="contactus.html" shape="rect" coords="343, 88, 468, 71">
</MAP>

*Note: I spaced it out so it wouldn't be too long in the post*


The site can be viewed at http://www.litenserv.com ( click enter) if that helps.

I need something that is Netscape-friendly and very simple to code.


Thanks for your help.

Mekhu
December 18th, 2001, 13:43
Hey RK.

Good post man, just tested mine and it's having problems also... I looked at your code and the only thing different between the two is I have my map specified below the actual pic...?

Mine seems to work, but you have to place the cursor over the section of the image for about 3 seconds before the link hand appears...

If anyone would like to provide us with some input on this, let me know.

Here's the link to the image map I am using at the moment.

www.presage-designs.com/elements/

Dusty
December 18th, 2001, 14:43
Raja: Your coordinates are backwards. It's right, top, left, bottom; not right, bottom, left, top. Also, don't put spaces between them. The map should go after the image as well, but that shouldn't matter as long as its a half-way recent version you're using.

Change it to:
<area href="home.html" shape="rect" coords="28,71,105,89">
<area href="dinelite.html" shape="rect" coords="115,71,227,90">
<area href="ordering.html" shape="rect" coords="230,71,337,88">
<area href="contactus.html" shape="rect" coords="343,71,468,88">


Mekhu: I didn't notice any problem with yours.

Mekhu
December 18th, 2001, 15:13
Dusty would I need to get rid of the spaces also, or does that break up my coordinates for my polygonal shape?

R. K. Raja
December 18th, 2001, 16:36
Thanks a lot Dusty. That little fix worked great. :)