0

Ive been fighting with this for a few hours now and cant seem to grab an answer.

I hope one of you guys can help.

I would like to add a delay on the mouseout so when they move away it has a pause before it disappears.

Here is the code

Header

<script type="text/javascript">
function ShowHide(id, visibility) {
    obj = document.getElementsByTagName("div");
    obj[id].style.visibility = visibility;
}

HTML

<a href="javascript:ShowHide('verify','visible')"
      onmouseover="ShowHide('verify','visible')"
      onmouseout="ShowHide('verify','hidden')">

Any help would be great.

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by serkan sendur
0

there are two built in functions in javascript : setTimeout and setInterval check them out there are milions of examples out web.

0

ok I figured it out Im using this onMouseOut="setTimeout('ShowHide(\'verify\',\'hidden\')',2000)"> Thank you for your help.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.