Trouble with image map

They have: 29 posts

Joined: Oct 2001

<img border="0" src="../testi/s2_04.gif" width="446" height="114" usemap="#defmap">
        <map name="defmap">
          <area href="main_photogallery.php?s=$session[sessionhash]" shape="rect" coords="6, 98, 53, 84">
          <area href="usercp.php?s=$session[sessionhash]" shape="rect" coords="64, 98, 116, 84">
          <area href="index.php?s=$session[sessionhash]" shape="rect" coords="129, 98, 168, 84">
          <area href="register.php?s=$session[sessionhash]&action=signup" shape="rect" coords="182, 98, 245, 84">
          <area href="memberlist.php?s=$session[sessionhash]" shape="rect" coords="259, 98, 328, 84">
          <area href="misc.php?s=$session[sesfsionhash]&action=faq" shape="rect" coords="342, 98, 374, 84">
          <area href="search.php?s=$session[sessionhash]" shape="rect" coords="385, 98, 439, 84">
</map>
'

That's the code I'm using, but it won't work under Netscape 6. What am I doing wrong?

NASCAR news, chat and forums

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Not sure if this will fix it but try moving the shape="rect" coords="6, 98, 53, 84" before your href

They have: 29 posts

Joined: Oct 2001

Darn.

That doesn't seem to work either. And I can't find anything, anywhere saying there are problems in Netscape with image maps.

They have: 601 posts

Joined: Nov 2001

Hm. Can you give us a URL to see if I can replicate the problem?

I've got IE, Mozilla and NS6 loaded up here on a Win98 box.

They have: 29 posts

Joined: Oct 2001

Busy's picture

He has: 6,151 posts

Joined: May 2001

try add a default area to your image map - the area between the links

you could always do what your doing with text & CSS or images and CSS or without css and plain HTML

They have: 29 posts

Joined: Oct 2001

I'm not sure what you're referring to.

Could you show me an example in HTML?

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Ahhhh Haaaa!
add name="s2_040" to your image tag

You have this:

Change it to this:

*my fingers are crossed* Laughing out loud

I think you will have to change what goes in the name="??????" part but that seems to be what is missing.

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Alrighty, after looking at this some more, change it to this:

If this don't work...then I don't know. The image map that you have wasn't working in Opera either. I redid the image map using your image and uploaded it. It works in opera when you add the name="defmap" so I'll assume that it will work in NS now too.

They have: 29 posts

Joined: Oct 2001

That isn't working either. Sad

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

You changed it to the wrong one. Did you try this one?

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Hey gwaz! Go here and see if this one works in netscape.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

I used the same image, recreated the map. Obviously the urls are off, but I did the first one to check that it wasn't the url that was throwing the map off.

As far as I can tell, you are missing the alt="" attribute, and you're coords are off, but I can't otherwise tell why it's not working.

They have: 29 posts

Joined: Oct 2001

Suzanne, that worked perfectly.

Thank you. Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.