By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,030 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,030 IT Pros & Developers. It's quick & easy.

Why does my hidden dropdown menu load when the page is loaded?

P: 5
I have been experimenting with putting a dropdown menu on my webpage. I want it to be hidden unless someone hovers over the main tab. I have everything working except when the page loads initially, the drop down menus are all visible. You can see what I am talking about on the page I'm working on, www.oceanmanmusic.com/indexc.html

If anybody has a solution that would be greatly appreciated.

Thanks,
Brad
Jul 18 '11 #1
Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
you need to call mclose() manually unless you hide the dropdown it from the start. (currently itís set to visible)
Jul 19 '11 #2

P: 5
Hi Dormilich,
Thanks for your response. Where exactly in the code do I call mclose()?

Thanks,
Brad
Jul 25 '11 #3

Dormilich
Expert Mod 5K+
P: 8,639
it doesn’t matter where, essentially when the document finished loading.
Jul 25 '11 #4

Rabbit
Expert Mod 10K+
P: 12,430
In the on load event. But I would take Dormilich's advice and just set it to hidden by default.
Jul 25 '11 #5

Post your reply

Sign in to post your reply or Sign up for a free account.