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 10-22-2010, 07:37 PM   PM User | #1
W S O
New to the CF scene

 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
W S O is an unknown quantity at this point
JQuery Mega Menu animation change

Hi Everybody,

I'm using the JQuery Megamenu found at http://www.javascriptkit.com/script/...megamenu.shtml. Everything is working fine except that my customer doesn't like how the menu expands from upper-left to lower-right. They want it to just expand straight top-to-bottom.

Can somebody point me to the best place in the code to look to change the animation style here?

Thanks,
Tom
W S O is offline   Reply With Quote
Old 10-23-2010, 08:55 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Hi Tom

The js includes jQuery show() and jQuery hide() effects - which animate both the width and height simultaneously - which is why you see the top left to bottom right effect. If you replace show with slideDown and hide with slideUp that should do the trick.
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
W S O (10-25-2010)
Old 10-23-2010, 07:10 PM   PM User | #3
W S O
New to the CF scene

 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
W S O is an unknown quantity at this point
Thanks SB65, that worked great!
W S O is offline   Reply With Quote
Old 10-25-2010, 06:31 AM   PM User | #4
W S O
New to the CF scene

 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
W S O is an unknown quantity at this point
Conflicts with other JQuery code

As I said, that fix worked great. But I'm finishing up the page, and when I use the JQuery Megamenu code (from the above url), it makes my other JQuery code I use error out.

For example, I have the page http://www.websiteoptimizers.com/mlogo/testlipswo.html which has JQuery code to create a custom-select box. If just add the few lines to use the JQuery MegaMenus (http://www.websiteoptimizers.com/mlogo/testlips.html which is identical to link above with the addition of lines 202-217), my other JQuery code errors out with " 'undefined' is null or not an object" at line 160.

I'm still learning the ins & outs of JQuery, but both of these modules work great on their own. But they don't play well together.

Can anyone give me some additional guidance?

Thanks,
Tom
W S O is offline   Reply With Quote
Old 10-25-2010, 07:02 AM   PM User | #5
W S O
New to the CF scene

 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
W S O is an unknown quantity at this point
Problem was due to noConflict

Sorry to bother anyone. I figured out the issue. The MegaMenu code begins with the noConflict() function, which as I understand it, turns OFF the alias of the dollar sign representing "JQuery". I took out the noConflict line in the MegaMenu code and everything works fine now.

Thanks,
Tom
W S O is offline   Reply With Quote
Reply

Bookmarks

Tags
jquery, megamenu

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 09:31 PM.


Advertisement
Log in to turn off these ads.