Re: Disappearing Dynamic Menus (Here you see them, and here you don't)

by "Michael Gerholdt" <gerholdt(at)fredonia.edu>

 Date:  Tue, 23 Oct 2001 13:01:53 -0400
 To:  <hwg-techniques(at)hwg.org>,
"George Nielsen" <genie(at)postone.com>
 References:  get2net
  todo: View Thread, Original
George,

Start by removing the onMouseOut event handler:

onMouseOut= .......

As soon as the mouse pointer goes over the image, the onMouseOver event is
used to run the function that makes the hidden layer appear.

As soon as the mouse pointer leaves the image, the onMouseOut event is used
to run the function that hides the layer again.

So change, for example, this:

<a href="Om_rue/index.htm"
onMouseOut="MM_swapImgRestore();MM_showHideLayers('document.layers[\'Layerin
fobox\']','document.all[\'Layerinfobox\']','hide')"
onMouseOver="MM_swapImage('document.Image7','document.Image7','gifs/knap_v.g
if','#939037746199');MM_showHideLayers('document.layers[\'Layerinfobox\']','
document.all[\'Layerinfobox\']','show')"><img src="gifs/forside_om_rue.gif"
width="59" height="12" border="0" alt="Om R.U.E."></a>


to this:

<a href="Om_rue/index.htm"
onMouseOver="MM_swapImage('document.Image7','document.Image7','gifs/knap_v.g
if','#939037746199');MM_showHideLayers('document.layers[\'Layerinfobox\']','
document.all[\'Layerinfobox\']','show')"><img src="gifs/forside_om_rue.gif"
width="59" height="12" border="0" alt="Om R.U.E."></a>


This will allow the layer to remain visible and then you can use the
contents of that layer as menu links.

Now, however, you will run up against another problem: How to make the layer
disappear when you want to make another one visible.

But that's another question.

Regards,
Michael Gerholdt
SUNY College at Fredonia

> As you can see, by hovering over the items listed on the left as well as
> the two buttons on the right, a menu pops up. Alas, as soon as the mouse
is
> moved, the menu disappears.
>
> My wish is that the menus remain to enable one to place the mouse over
> them, and by clicking on each of the listed item to link to another page.
>
> Do you know what I can do in order to achieve the above?
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA