Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-15-2011, 09:33 PM   PM User | #1
A_Grant
New Coder

 
Join Date: Feb 2009
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
A_Grant is an unknown quantity at this point
Angry jQuery Sliding Mouseout Delay Help Needed

Howdy,

I don't know much about jQuery but am beginning to dabble in it. I built a jQuery sliding subcategory menu from a tutorial. Through my restructuring, I need the sub-menu to sit longer on mouseout so the user has time to pick a subcategory. Seems simple but with all my scouring throughout the interwebz and trial/error I cannot seem to get the damn sub-menu to stay still.

I am posting a link to the tutorial if needed. I will post the javascript itself along with a zip of the site files needed for debugging (zip was to large for Coding Forums attachment, I linked to my G-Docs account).

Thanks in advance for helping a newbie out.


Tutorial: http://bit.ly/tnmjWl

Link to Source Files: http://bit.ly/txDCPY

Current Javascript:

Code:
$(function(){

	//Hide SubLevel Menus
	$('#nav-container ul li ul').hide();

	//OnHover Show SubLevel Menus
	$('#nav-container ul li').hover(
		//OnHover
		function(){
			//Hide Other Menus
			$('#nav-container ul li').not($('ul', this)).stop();

			//Remove the Border
			$('ul li.arrow', this).css('border-bottom', '0');

			// Show Hoved Menu
			jQuery('ul', this).stop(true, true).slideDown();

			
			
			
		},
		//OnOut
		$('#nav-container ul li').mouseout(
		function(){
			// Hide Other Menus
			jQuery('ul', this).stop(true, true).slideUp()

		}
		
)
	);

});
A_Grant is offline   Reply With Quote
Reply

Bookmarks

Tags
delay, jquery, sliding, timeout

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:47 AM.


Advertisement
Log in to turn off these ads.