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.

Recommended Answers

All 3 Replies

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

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

please mark as solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.