setTimeout javascript
by "Andy Innes" <innax(at)icon.co.za>
|
Date: |
Thu, 4 Apr 2002 16:16:10 +0200 |
To: |
<hwg-techniques(at)hwg.org> |
References: |
localhost noteworthydesigns |
|
todo: View
Thread,
Original
|
|
Can anyone help me with this script?
I have a layer displaying on image mouseover (the layer covers the image and
contains a table with 5 cells and 5 corresponding dropdown menus).
I'm trying to set the timeout so that the layer hides itself again after
2000 ms if the mouse is not over the original image. The problem is that the
layer does not hide when I insert the timeout statement, but hides fine
without it.
Here is the script:
<a href="#" onMouseOver="MM_showHideLayers('Layer1','','show')"
onMouseOut="setTimeout('MM_showHideLayers('Layer1','','hide')',2000)"><img
src="images/stockpic.jpg" width="306" height="29"border="0"></a>
Andy
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA