I am attempting to create drop down menus for a web page. The simplist
approach I see is to create two images. One is a tab image and the
other is a menu image. In my code a present the tab image when the page
loads. Associated with the tab image is a mouseover event to show the
menu image by replaceing the image source.. A usemap is used to provide
the links on the menu image. Click and off you go. If you move off the
menu without clicking a link then mouseout is used to put the tab image
back.
Works great in IE 6 and Opera 7. Does not work in mozilla based
browsers. What happens is that the menu image appears to load under the
loads under the tab image. In fact when I move the mouse below the tab
image the menu image closes leading me to believe that the browser dose
not realize it is there. If I take out the mouseout code it works, but
the problem is that the menu never closes. If I take out the usemap it
works but I have no links. Oh yes, the menu image height is several
times greater thatn the tab image height.
Beats me. I would appreciate it it if anyone has any thoughts or
suggestions
The code I am using is:
<img id="menuTabTwo " src="./graphics/toursButton.png " alt=""
style="position :absolute; left:53px; margin-top:84px"
onmouseover="do cument.getEleme ntById('menuTab Two').src='./graphics/toursMenu.png'"
onmouseout="doc ument.getElemen tById('menuTabT wo').src='./graphics/toursButton.png '">
Thank you
Michael
approach I see is to create two images. One is a tab image and the
other is a menu image. In my code a present the tab image when the page
loads. Associated with the tab image is a mouseover event to show the
menu image by replaceing the image source.. A usemap is used to provide
the links on the menu image. Click and off you go. If you move off the
menu without clicking a link then mouseout is used to put the tab image
back.
Works great in IE 6 and Opera 7. Does not work in mozilla based
browsers. What happens is that the menu image appears to load under the
loads under the tab image. In fact when I move the mouse below the tab
image the menu image closes leading me to believe that the browser dose
not realize it is there. If I take out the mouseout code it works, but
the problem is that the menu never closes. If I take out the usemap it
works but I have no links. Oh yes, the menu image height is several
times greater thatn the tab image height.
Beats me. I would appreciate it it if anyone has any thoughts or
suggestions
The code I am using is:
<img id="menuTabTwo " src="./graphics/toursButton.png " alt=""
style="position :absolute; left:53px; margin-top:84px"
onmouseover="do cument.getEleme ntById('menuTab Two').src='./graphics/toursMenu.png'"
onmouseout="doc ument.getElemen tById('menuTabT wo').src='./graphics/toursButton.png '">
Thank you
Michael
Comment