Show a static menu if javascript is not activated, so you can reach at least some parts of the site.

Comments

zroger’s picture

Version: 6.x-1.1 » 6.x-2.x-dev

moving to the 2.x branch

AlexisWilke’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev

We cannot attach the menu to anything if JavaScript is off. The menu is made available in the form of a JavaScript variable... However, we could create a Simplemenu Block that is activated if JavaScript is off. And that block would display the Simplemenu. I do not see any other way at this point. Let me know if you have a different idea.

Thank you.
Alexis Wilke

meustrus’s picture

Subscribing. Making a block that activates when Javascript is turned off would be nice, but it would also be good to have an option to use the block as a primary.

Would Fixed mode still work without Javascript? What if, only when Fixed mode is enabled, the HTML is inserted directly instead of with jQuery? Perhaps at the beginning of Closure if the block isn't placed anywhere?

AlexisWilke’s picture

meustrus,

Did you try the Nice menus?

It puts a Super Fish menu in a block already.

Thank you.
Alexis Wilke

AlexisWilke’s picture

I am thinking that we could use the <noscript> tag to insert the menu in a block. The whole block would need to be encapsulated in the noscript tag, but that should be easy to do with a block template.

Mainly writing a note to myself... 8-)

Thank you.
Alexis

meustrus’s picture

I did try Nice Menus, but I found it more difficult to theme than SimpleMenu and I want the menu to be fixed at the top of the page anyway. I just want the menu (that is fixed at the top of the page) to remain functional when Javascript is turned off.