Click to See Complete Forum and Search --> : Adding drop down JS menus to rollover images


The Goodz
March 5th, 2003, 10:44 PM
Hey all. I'm a bit new to JavaScript, so go easy on me. In a web page I'm designing I have javascript rollover images. Now what I would like to do is add a drop down javascript menu such as the one located here (http://www.dynamicdrive.com/dynamicindex1/popit.htm) to the rollover image. The existing tag for the rollover image is as follows:

<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('eseries','','eseriesbuttonover.gif',1)"><img name="eseries" border="0" src="eseriesbuttonup.gif" width="93" height="24"></a>

Is what I want to do possible? Or do I have to get rid of the rollover script to do so?

Thanks in advance

Alex

antares686
March 6th, 2003, 04:32 AM
Not knowing what MM_swapImgRestore and MM_swapImage do I cannot say for sure. However the basics look right as long as the image needds to also be a hyperlink. If not then get ride of the anchor tag and do this instead

<img name="eseries" border="0" src="eseriesbuttonup.gif" width="93" height="24" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('eseries','','eseriesbuttonover.gif',1)">

It will have the same effect without the hyperlink effect on the button.