Mouseout- technincal definition

M

MDBJ

If I select an entire layer, composed of 4 lines of large text.. and
set it to disappear on mouse out,
why does it disappear on just about any mouse activity in the layer?

how does mouseout get defined?


fwiw it's at

http://www.ocean7hotel.com/index2test.htm

right now, if I mouse down o the link from the top, I never make it.
if I mouse up from the bottom, I can make it.

I'd like it to disappear if the link is not selected.. but it disappears
too fast sometimes.


thanks for thoughts...
 
J

Jon Spivey

Hi,
If you apply a mouseout to a layer it will fire whenever the mouse moves out
of anything contained within that layer., not just the layer itself. A quick
way to get around this is to stick another layer with a lower z index behind
your layer containing a transparent gif and add the show/hide layer
behaviour to fire onmouseout of the gif, so you'd start with something like

<div="content" style="z-index:
2;position:absolute;left:10px:top:10px;width:200px">
your content
</div>
<div="gif" style="z-index:
1;position:absolute;left:5px:top:5px;width:210px">
<a href="javascript:;"><img src="shim.gif" width="210" height="200"></a>
</div>

then click on the gif and apply show/hide layers to hide the content layer.
 
M

MDBJ

yea.. I knew it had to be something about the technical workings of
mouseout.
Thanks.. I'll play with that example.

Mj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top