|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
i have a simple layer with some text links that appears on rollover of an area. i used the following code:
<div id="test" .. onMouseout="hide('test');"> <table> <tr><td>(some links)</td></tr> </table> where hide() is a javascript function that sets the visibility of test to "hidden". when the layer becomes visible, the mouse pointer is already inside it. unfortunately, when i move the pointer over any of the links, the layer immediately disappears. why? |
|
#2
|
|||
|
|||
|
I suppose u need both - onmouseover and onmouseout to run the script properly.
Check my post "layer visibility in Netscape?" I have written an explicit code for an IE layer that appears when onmouseover and hides when onmouseout. Take a look. |
|
#3
|
||||
|
||||
|
thanks... you are right, i needed both those attributes to make it work correctly. actually, i had to tell it to:
-show the layer onMouseover of the hyperlink. -show the layer onMouseover of the layer itself!! that second one really surprises me. it seems that moving from the layer to the hyperlink and moving back are both events of some sort that redraw the layer. i don't understand enough of what's happening here to explain it clearly. can somebody point me to a good book or other source for info on this type of thing? <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by sellenit: I suppose u need both - onmouseover and onmouseout to run the script properly. Check my post "layer visibility in Netscape?" I have written an explicit code for an IE layer that appears when onmouseover and hides when onmouseout. Take a look.[/quote] |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > hiding a DIV layer w/ onMouseout |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|