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!

Problem with imagemap in Netscape

Status
Not open for further replies.

cactus1000

Programmer
Aug 31, 2001
149
US
Recently, I created a simple navigation bar with image mapping and mouseover effects. Everything worked fine in IE and Netscape. The image mapping pointed to HTML files on the same server as the navigation bar (although I used the full URLs for the links).

Then I changed a couple of the links in the image map to point to ASP files on a different server. Again, I used the full URL for the link.

Now, Everything works fine in IE, but the image mapping and mouseover effects no longer work in Netscape.

What happened????

Here'e the code:

<HTML>
<HEAD>
<META NAME=&quot;Author&quot; CONTENT=&quot;Callan&quot;>
<META NAME=&quot;Generator&quot; CONTENT=&quot;Jasc Paint Shop Pro 7&quot;>
<TITLE> </TITLE>
</HEAD>

<Script Language=&quot;JavaScript&quot;>
image0 = new Image(83,159)
image0.src = &quot;navigation.jpg&quot;
image1 = new Image(83,159)
image1.src = &quot;navigation1.jpg&quot;
image2 = new Image(83,159)
image2.src = &quot;navigation2.jpg&quot;
image3 = new Image(83,159)
image3.src = &quot;navigation3.jpg&quot;
image4 = new Image(83,159)
image4.src = &quot;navigation4.jpg&quot;

</script>
</HEAD>
<BODY bgcolor=&quot;#006666&quot;><center>
<table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td><IMG SRC=&quot;photo.jpg&quot;></td></tr>
<tr>
<td><IMG NAME=&quot;xnavigation0&quot; SRC=&quot;xnavigation.jpg&quot; WIDTH=&quot;83&quot; HEIGHT=&quot;159&quot; BORDER=&quot;0&quot; USEMAP=&quot;#Xnavigation&quot;>
</td></tr>
</table></center>




<MAP NAME=&quot;xnavigation&quot;>
<AREA SHAPE=&quot;rect&quot; COORDS=&quot;4,5,75,20&quot; HREF=&quot; TARGET=&quot;right&quot;
onMouseOver=&quot;if(document.images) document.xnavigation0.src='xnavigation0.jpg';&quot;
onMouseOut=&quot;if(document.images) document.xnavigation0.src='xnavigation.jpg';&quot; >
<AREA SHAPE=&quot;rect&quot; COORDS=&quot;5,26,79,40&quot; HREF=&quot; TARGET=&quot;right&quot;
onMouseOver=&quot;if(document.images) document.xnavigation0.src='xnavigation1.jpg';&quot;
onMouseOut=&quot;if(document.images) document.xnavigation0.src='xnavigation.jpg';&quot; >
<AREA SHAPE=&quot;rect&quot; COORDS=&quot;4,51,78,63&quot; HREF=&quot; TARGET=&quot;right&quot;
onMouseOver=&quot;if(document.images) document.xnavigation0.src='xnavigation2.jpg';&quot;
onMouseOut=&quot;if(document.images) document.xnavigation0.src='xnavigation.jpg';&quot; >
<AREA SHAPE=&quot;rect&quot; COORDS=&quot;3,71,81,85&quot; HREF=&quot;mailto:aaron@law.ucla.edu&quot; TARGET=&quot;_top&quot;
onMouseOver=&quot;if(document.images) document.xnavigation0.src='xnavigation3.jpg';&quot;
onMouseOut=&quot;if(document.images) document.xnavigation0.src='xnavigation.jpg';&quot; >
</MAP>

</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top