Image Relacement Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Phillips

    #1

    Image Relacement Question

    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

  • kaeli

    #2
    Re: Image Relacement Question

    In article <407396E2.A6E23 807@yahoo.com>, michael_ja@yaho o.com
    enlightened us with...[color=blue]
    > I am attempting to create drop down menus for a web page.[/color]

    Why reinvent the wheel?
    There's quite a few already out there for free.

    http://www.dynamicdrive.com

    Unless you're just doing it for practice or something...

    --
    --
    ~kaeli~
    Any sufficiently advanced technology is indistinguishab le
    from magic.



    Comment

    Working...