Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Minor jQuery Dropdown Menu Issue [Beginner]
Old 10-12-2009, 12:11 PM Minor jQuery Dropdown Menu Issue [Beginner]
Alex Fraiser's Avatar
Novice Talker

Posts: 13
Name: Alex
Trades: 0
Hey guys,

I am developing a dropdown menu using jQuery (I'm still a beginner). Basically, this is what I am having trouble with:

When I hover my mouse over "li.guide", the menu slides down as it should. But, when I try to click on or just hover on the menus that dropped down, the menu slides back up. Basically, the script I pasted below says this (the incorrect approach):

"Hover over li.guide, drop the menu down. When someone hovers off li.guide, collapse it."

And what i want to happen is someone hovers over li.guide and they move their mouse down to be able to click the content in the dropdown menu. But, when they hover their mouse off of the menu, it collapses.

I hope I was clear enough! Here's the code:

Code:
$(document).ready(function() {
    $('li.guide').mouseover(function() {
        $('ul#guides_sub').slideDown('medium');
    }).mouseout(function() {
        $('ul#guides_sub').slideUp('medium');
    });
});
I am just not sure how to change this code to how I want, but I know what I want it to do. Any help is very appreciated. Thanks!
__________________

Please login or register to view this content. Registration is FREE
Alex Fraiser is offline
Reply With Quote
View Public Profile Visit Alex Fraiser's homepage!
 
 
Register now for full access!
Reply     « Reply to Minor jQuery Dropdown Menu Issue [Beginner]
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08330 seconds with 12 queries