Solved

imagemap

Posted on 2003-10-26
5
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

687 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