|
|
|
|
Thread title: jquery dropdown visable on load |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
04-07-2010, 05:36 PM
|
#1
|
Status: Junior Member
Join date: Mar 2010
Location: Omaha, Nebraska, USA
Expertise: Web Hosting, Servers
Software: Notepad
Posts: 63
|
jquery dropdown visable on load
Hi guys,
Curious if anyone knows of a way to use the jquery dropdown script to have one of those dropdowns automatically visible when the page loads.
Basically I have a top navigation of 5 items, 3 of them have dropdowns. I'm looking to have the 3rd item (support) to have 3 options - helpdesk, live chat, knowledegebase - but on the page loading I want to have those visible. Once a user scrolls over the rest of the navigation it can retract, but at least initially on the page load I'd like to see it visible.
Does anyone know if this is possible in jquery? I've hunted around on various forums and in Google, but haven't found an answer that works yet.
Any help is appreciated.
|
|
04-07-2010, 08:01 PM
|
#2
|
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
Posts: 2,097
|
You could have it so that it is not hidden ( display:hidden; ) by default..?
|
|
04-07-2010, 09:24 PM
|
#4
|
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
Posts: 2,097
|
Originally Posted by santa
You mean display:none, or if you want to show it by default, display:block
|
I do, silly me! Obviously it's visibility: hidden
Thanks santa
|
|
04-07-2010, 09:53 PM
|
#5
|
Status: Request a custom title
Join date: Jan 2005
Location: West Sussex, England
Expertise:
Software:
Posts: 2,829
|
I wouldn't hide the navigation with any css, use jQuery to do the whole lot.
Basics...
$('ul#navigation li ul').hide();
$('class/id of sub nav to show here').show();
Ideally you would want to filter the hide(); function.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|