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 01-24-2011, 06:18 PM   PM User | #1
Psionicsin
Regular Coder

 
Psionicsin's Avatar
 
Join Date: Aug 2010
Location: Ann Arbor, Michigan
Posts: 334
Thanks: 51
Thanked 0 Times in 0 Posts
Psionicsin is an unknown quantity at this point
jQuery Combination Menu NOT working

I can't figure out what I'm doing wrong with this menu.

I'm trying to integrate this jQuery menu: http://javascript-array.com/scripts/...rop_down_menu/

Into the jQuery menu that I already have established: http://rutholsonphoto.com/rop_testbuild/index.php

...but it's coming out disastrous, and I haven't a clue as to where my problem lies.

The original menu that I was using made the names of the menu's flip backward to a darker text on a lighter colored background. The secondary one was supposed to add drop down functionality to 3 of those menu titles.

Instead it's breaking the styling and forcing everything to be text and to the top-left of the page.
Psionicsin is offline   Reply With Quote
Old 01-26-2011, 04:01 PM   PM User | #2
Psionicsin
Regular Coder

 
Psionicsin's Avatar
 
Join Date: Aug 2010
Location: Ann Arbor, Michigan
Posts: 334
Thanks: 51
Thanked 0 Times in 0 Posts
Psionicsin is an unknown quantity at this point
Anyone at all, or did I leave out some information that you guys need?
Psionicsin is offline   Reply With Quote
Old 01-26-2011, 06:47 PM   PM User | #3
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
Looked at your linked page and I don't see what you describe - "At a glance" and "About us" etc flip over in the way you describe, but I don't see any broken styling.

Or....is "About Ruth" and "About the staff" the dropdown? If so, then your html is wrong - you have:

Code:
<li>
   <a class="hovermenu" href="#" style="margin-top: -29px;">About Us</a>
   <a class="normalmenu" href="#">About Us</a>
</li>
<ul>
   <li><a href="#">About Ruth</a></li>
   <li><a href="#">About the Staff</a></li>
</ul>
which should be nested:

Code:
<li>
   <a class="hovermenu" href="#" style="margin-top: -29px;">About Us</a>
   <a class="normalmenu" href="#">About Us</a>
   <ul>
      <li><a href="#">About Ruth</a></li>
      <li><a href="#">About the Staff</a></li>
   </ul>
</li>
Try fixing that first.
SB65 is offline   Reply With Quote
Old 01-27-2011, 01:21 AM   PM User | #4
Psionicsin
Regular Coder

 
Psionicsin's Avatar
 
Join Date: Aug 2010
Location: Ann Arbor, Michigan
Posts: 334
Thanks: 51
Thanked 0 Times in 0 Posts
Psionicsin is an unknown quantity at this point
EDIT:

I see what I was doing wrong. I didn't even realize that I had my ul's outside of their respective li's.

But although that's solved, I'm still not getting drop-down functionality.

Last edited by Psionicsin; 01-27-2011 at 02:49 AM..
Psionicsin is offline   Reply With Quote
Old 01-27-2011, 07:35 PM   PM User | #5
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
OK, there's a few things wrong.

Try removing overflow:hidden from #header, and the height setting from #jsddm. With these the dropdowns will always be hidden. The dropdowns are then visible, but your design breaks.

Take the top margin off #navcontainer, that fixes your design somewhat.

Not sure what you want to happen with the top level, but probably not as it now appears...
SB65 is offline   Reply With Quote
Old 01-29-2011, 11:55 PM   PM User | #6
Psionicsin
Regular Coder

 
Psionicsin's Avatar
 
Join Date: Aug 2010
Location: Ann Arbor, Michigan
Posts: 334
Thanks: 51
Thanked 0 Times in 0 Posts
Psionicsin is an unknown quantity at this point
Quote:
Originally Posted by SB65 View Post
Try removing overflow:hidden from #header, and the height setting from #jsddm. With these the dropdowns will always be hidden. The dropdowns are then visible, but your design breaks.
And this is what I can't have happen, but I'm not aware of a remedy to fix this as the flip menu wasn't developed by myself.

Quote:
Originally Posted by SB65 View Post
Not sure what you want to happen with the top level, but probably not as it now appears...
The titles should flip backward (via the animation already seen), and a dropdown menu should appear also (IF it is tagged to for dropdown function).
Psionicsin is offline   Reply With Quote
Reply

Bookmarks

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 11:01 PM.


Advertisement
Log in to turn off these ads.