[jQuery] Re: Need help with a Jquery toggle bug in my menu's

2009-01-18 Thread jQuery Lover
Tried on chrome and ie. Mouse was on first menu item while loading. Showed up and worked just fine afterwards. Try to clear your cache or something... maybe your browser is reading from the cache or like I once had this most stupid mistake of mine when I was correcting local file and refreshing m

[jQuery] Re: Need help with a Jquery toggle bug in my menu's

2009-01-12 Thread Ted
And here's the URL again: http://dl.getdropbox.com/u/21984/menu_test/menu_test.html On Jan 10, 11:56 am, "jQuery Lover" wrote: > I suggest you take the other way. We shall not forget about beloved > CSS :) Try this: > > $(document).ready(function(){ >   $('#nav li') >     .bind('mouseenter mous

[jQuery] Re: Need help with a Jquery toggle bug in my menu's

2009-01-12 Thread Ted
I implemented your fix and unfortunately, the issue remains. To further demonstrate the problem, I've added some YouTube videos to the page to simulate the Flash components I have on my main example. Now, if you load the page, and then the on one of the main menu items to reload the page, keep yo

[jQuery] Re: Need help with a Jquery toggle bug in my menu's

2009-01-10 Thread jQuery Lover
I suggest you take the other way. We shall not forget about beloved CSS :) Try this: $(document).ready(function(){ $('#nav li') .bind('mouseenter mouseleave', function(){ $(this).toggleClass('menu-on'); }); }); In your CSS file add: #nav div{ display:none;

[jQuery] Re: Need help with a Jquery toggle bug in my menu's

2009-01-10 Thread Ted
Sorry, very new to Jquery (and not that skilled at js to begin with). I think I follow what you are saying, but not having a good grasp of the jquery syntax, I'm not sure exactly how to properly execute. Here's what I came up with, but it's not working, so I know there's a problem somewhere, but

[jQuery] Re: Need help with a Jquery toggle bug in my menu's

2009-01-09 Thread jQuery Lover
@serpicolugnut: read my previous post!!! Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:06 PM, serpicolugnut wrote: > > > I've got a full width drop down menu setup, using jquery's toggle to > show/hide the hidden divs when the user clicks on the one

[jQuery] Re: Need help with a Jquery toggle bug in my menu's

2009-01-09 Thread jQuery Lover
Introduce some variable that tracks the current menu state. $(document).ready(function(){ var menuOn = false; $("li.main-nav").children('div').hide(); $("li.main-nav").bind("mouseenter mouseleave", function(){ ... }); }); And then, in your bound function check with "if" statement if