Advertisement

02.27.2008 at 08:11AM PST, ID: 23197321
[x]
Attachment Details

Tweak needed for multi-level horizontal menu using small JavaScript, CSS and HTML Unordered list

Asked by megnin in Cascading Style Sheets (CSS), JavaScript, Programming for ASP.NET

Tags: ASP.Net 2.0, JavaScript, CSS, IE 5, 6, 7; Firefox 2.0.x.x, Horizontal Menu

I found a nice Horizontal Menu using a simple JavaScript and minimal CSS capable of sub-menu items.

It looks nice and works well with one level of drop-down items.  But when I add sub-menus I get a drop-down list of sub-menus under the main menu item directly under the main menu item which makes it impossible to select items under a sub-menu.

I'll try to explain:
Hovering over the main menu causes the sub menus to drop down.
Moving the mouse over the first sub menu causes the items to drop down as they should.
Moving the mouse down, like to an item, causes the second sub menu to activate rather than letting you select an item in the first sub menu.

To fix it, the sub menus and items simply need to be offset about 5 character widths to the right so you can either drop straight down to select sub menus or slide over to select items in the current sub menu.

I'm attaching a zip file with the .aspx file and associated .css, .js and image files required.  The support files are in appropriate css, scripts and image folders for the paths in the .aspx file.
I'd appreciate anyone who could take a look at this and help me fix it. (the css is well documented with comments)

Thanks a bunch!
p.s. Sorry, I had to add .doc to the .zip filename to upload it.  I hope I don't get in trouble for that.Start Free Trial
Attachments:
 
ProgramManuals.aspx with horiz. menu. Rename to .zip
 
 
Loading Advertisement...
 
[+][-]02.27.2008 at 12:15PM PST, ID: 20997878

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), JavaScript, Programming for ASP.NET
Tags: ASP.Net 2.0, JavaScript, CSS, IE 5, 6, 7; Firefox 2.0.x.x, Horizontal Menu
Sign Up Now!
Solution Provided By: bdichiara
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.27.2008 at 12:22PM PST, ID: 20997941

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 12:24PM PST, ID: 20997958

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628