/    Sign up×
Community /Pin to ProfileBookmark

Link Menu – Timeout function

I am trying to make a simple menu using Javascript. Basically, I have links going across the top of the page and when the mouse is placed on either link it causes a <div style=”visibility: hidden”> area to become visible and then it loads that area with links.

Now, my problem is: How do I make it so that when I move the mouse out of the <div> area, it goes back to hidden after a specified amount of time – I am guessing using the clear and set Timeout functions. I am just not sure of how to do it.

Let me know if you need code to help me out with this one, Thank you in advance.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@JPnycNov 05.2004 — You write your function that hides it again, and use this in the call

onmouseout="setTimeout('hideIt()',1000);"
Copy linkTweet thisAlerts:
@ai3rulesauthorNov 05.2004 — That was way too simple lol. Thank you.
×

Success!

Help @ai3rules spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...