Solved

imagemap

Posted on 2003-10-26
5
270 Views
Last Modified: 2010-04-09
I feel kind of silly asking this, and I know Netscape has different imagemapping than internet explorer but I have tried what I think is everything and can't fix my imagemap can you help?  There is javascript used in the image map and I think that might be the problem, but I'm not sure...

here's my image:

<img src="images/nav.gif" width="272" height="184" alt="" border="0" usemap="#navi">



here's my image map:

<map name="navi">
<area alt="browse" coords="111,79,175,99" href="store.cgi" shape="RECT">
<area alt="my cart" coords="113,120,180,103" href="#" onClick="window.open('https://www.paypal.com/cart/display=1&business=mail@somewhere.com','paypal','width=400,height=350,scrollbars,location=no,resizable,status');">
<area alt="about" coords="118,137,173,121" href="javascript:onClick=new_window()">
<area alt="contact" coords="117,154,182,140" href="contact.php">
</map>

0
Comment
Question by:dsyn
  • 2
5 Comments
 

Expert Comment

by:wwwgts
ID: 9625949
<area alt="my cart" coords="113,120,180,103" href="#" onClick="window.open('https://www.paypal.com/cart/display=1&business=mail@somewhere.com','paypal','width=400,height=350,scrollbars,location=no,resizable,status');">

does that work? if not then try

<area alt="my cart" coords="113,120,180,103" href="javascript:window.open('https://www.paypal.com/cart/display=1&business=mail@somewhere.com','paypal','width=400,height=350,scrollbars,location=no,resizable,status');">

<area alt="about" coords="118,137,173,121" href="javascript:onClick=new_window()">

i think that should be

<area alt="about" coords="118,137,173,121" href="javascript:new_window();">

and do u have new_window() javascript somewhere in ur html code?
0
 
LVL 1

Author Comment

by:dsyn
ID: 9626622
Thanks for catching those semi-colon and the javascript:window.open... thingies but it didn't work....
So far the only area that is clickable in netscape is <area alt="browse" coords="111,79,175,99" href="store.cgi" shape="RECT"> ... I'm using netscape 7 if that halps.  

I hate netscape. I wish they would be more like IE without the security holes.
0
 
LVL 1

Accepted Solution

by:
dsyn earned 0 total points
ID: 9636730
The answer to my question is that the mapped areas were to close together.
I just had to make my clickable ares smaller which made them further apart from each other.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question