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 07-13-2010, 12:38 AM   PM User | #1
nharding99
New to the CF scene

 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nharding99 is an unknown quantity at this point
Question Problems getting sub menus to work

I normally find an off the peg menu system that works but this time I have to make some modifications... I normally muddle through but I'm struggling....

I am using a horizontal menu bar which uses images for the default and rollover effects (this is mandatory as the client wishes to enforce a particular font for the menu items). This is all working fine.

I need to add submenus to some of these root menu options (these need not be images) and I was looking at this rather neat solution using jquery: http://www.sohtanaka.com/web-design/...th-css-jquery/

However, Im struggling to get the sub-menu options to appear at all. I suspect that I may not be grabbing the correct DOM object. The prototype web page is here (http://www.hardingweb.net/collyers/index.html) and the About Us menu option should provide sub-menu options.

Can anyone suggest what I might be doing wrong?

Files used:

http://www.hardingweb.net/collyers/index.html
http://www.hardingweb.net/collyers/s...enubar-img.css
http://www.hardingweb.net/collyers/js/main.js

Thanks
Nigel
nharding99 is offline   Reply With Quote
Old 07-14-2010, 09:17 AM   PM User | #2
hdewantara
Regular Coder

 
hdewantara's Avatar
 
Join Date: Aug 2009
Location: Jakarta, Indonesia.
Posts: 287
Thanks: 4
Thanked 39 Times in 39 Posts
hdewantara is an unknown quantity at this point
Welcome to the club, nharding99.

That's because you're trying to merge 2 scripts:
one from Dynamicdrive, the other is Sohtanaka's.

Seems that these two has different HTML menu tree structure,
and also submenu capability, i.e: Sohtanaka's couldn't create multiple
submenus (?).

So, assuming that you only need 1-level deep submenus,
probably converting DynamicDrive into Sohtanaka's is the easiest way.

Hendra
hdewantara is offline   Reply With Quote
Reply

Bookmarks

Tags
submenu jquery

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


Advertisement
Log in to turn off these ads.