Active
Project:
Megamenu
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Reporter:
Created:
10 Sep 2010 at 07:43 UTC
Updated:
25 Nov 2010 at 16:19 UTC
Jump to comment: Most recent
The nature of our business means that we must cater for a very wide audience, thus forcing us to negate the use of JavaScript on our most important functional sections of our websites.
As you'll appreciate, the menu is the most important part of a website in most applications. We'd love to use megamenu but I installed it yesterday and trying it with JavaScript disabled, and furthermore tested it by deleting the .js file in the module, neither of which allow the full functionality of the menu. i.e. Only the top level is visible and active. The lower levels cannot be accessed.
Any help and advice on how I could achieve this with CSS only would be greatly appreciated.
Comments
Comment #1
danielhonrade commentedhi,
add this to you css:
Adjust your tags to whatever you're using, I'am using primary links and the height of my top menu is 30px, plus you have to add width and position to your columns because I think these are computed by js.
Comment #2
sittard commentedTaking that a bit further.
To allow both singular and columnar bins to be activated without JS and no need for the #megamenu-primary-links selector.
Comment #3
sittard commentedThe CSS above forces the menu to appear instantly, essentially overriding the hovertime variable in megamenu.js. So ideally the CSS should ONLY be applied when JavaScript can not be detected.
Comment #4
jonthomas83 commentedThank you for your responses guys, very much appreciated, will take a look at implementing this as soon as I get a minute. Will get back to you with the result!
Thanks again, it's appreciated.
Comment #5
verta commentedSubscribing, also can someone help me to do what is in #3, would this be code in the theme?
Comment #6
Anonymous (not verified) commentedYes put mega menu styles in your theme's css.
Comment #7
Anonymous (not verified) commentedComment #8
lewisnymanYou would require a no-js class to be inserted into the body of your html using your theme page.tpl.
Then add this line of jQuery:
$('body').removeClass('no-js');The CSS would then change to: