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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

useMap issue with firefox

Status
Not open for further replies.

charIie

Programmer
Feb 14, 2006
21
US
I have encountered a problem with ff not showing/using my imagemap. It works perfectly in IE, but blinks once for FF and then does not come back. What the script below does is a mouseover image switch and the new image is the map. You can see the difference in IE/FF. I have it on the web at The area is the top right. If anyone know why this happens or how I can correct it, it would be much appriceated. Thanks in advance.


<script type="text/javascript">
<!--
function openmenu(){document.menu.src='images/contestsopen.GIF';
document.menu.useMap="#contestsopen";}
//-->
</script>

<map id="contestsopen" name="contestsopen">
<area shape="rect" coords="24,26,92,41" href="videocontest.htm" title="" target="rside" />
<area shape="default" nohref="nohref" alt="" />
</map>
<span onMouseOver=openmenu()
onMouseOut="document.menu.src='images/contests.GIF'">
<img border="0" src="images/contests.GIF" width="100" name="menu">
</span>
 
Yes, I do mean JavaScript, thanks. The problem is 50% better. Now the dropdown appears, but the useMap will still not work.I updated it. Is there a specific reason this is happening? Also, is there a way to auto detect if javascript is enabled? So I can add something that alerts the user that they should enable javascript for full performance?

Thanks alot.

Brian
 
If javascript is not present - then you can't alert them using a window like an alert. You could have some text on the page in a container with an ID... and then use javascript to remove it... same end result.

I'm glad you've made some progress on this one.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Yes, Thanks, If you look at the site now, the menu for the contests does not dropdown, but stay the same size. I have the table set so that specific cell/table height is all the right size to fit the larger image. I cant seem to find out why it reduces the larger image to the smaller image size.

Here is the javascript now:
<script type="text/javascript">
<!--
function openmenu(){document.menu.src='images/contestsopen.GIF';
document.getElementById('menu').useMap="#contestsopen";}
//-->
</script>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top