CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2003
    Location
    Melbourne, Australia
    Posts
    1

    Adding drop down JS menus to rollover images

    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 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

  2. #2
    Join Date
    Jan 2003
    Location
    North Carolina
    Posts
    309
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured