Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:05

Using <noscript> if javascript disabled


Poster: iain_s
Dated: Tuesday October 26 2004 - 12:10:01 BST

I've just created my first menu and I'm impressed with the product. I'm now setting up an alternative menu for 'js disabled' .

Simple question (I 'm sure I should know the answer) - I've got the alternative menu defined in <_noscript> <_/noscript> code. How do I stop the block with the 'js enable code' displaying ?

I feel I want a
if <-noscript>
.....
else
....
type of construct

I've looked at some of the forum entries but can't think of an easy way to do it.

Re: Using <noscript> if javascript disabled


Poster: John
Dated: Tuesday October 26 2004 - 13:38:43 BST

iain_s wrote:
Simple question (I 'm sure I should know the answer) - I've got the alternative menu defined in <_noscript> <_/noscript> code. How do I stop the block with the 'js enable code' displaying ?

I'm not exactly sure what you're asking (it's early here!). Simply set up your alternate menu within <noscript></noscript> tags (what you have above is incorrect). If JS if off that code will be shown.


Poster: iain_s
Dated: Tuesday October 26 2004 - 14:24:13 BST

I have a table that includes the images and text that call the js menu - I would like this table to be ignored when js is disabled..

The alternative menu displays fine but I still see the 'prompt' for the main menu.


Poster: John
Dated: Wednesday October 27 2004 - 4:15:04 BST

A URL would help.

Using <noscript> if javascript disabled


Poster: iain_s
Dated: Wednesday October 27 2004 - 8:51:01 BST

See http://www.doxeyca.org.uk/dm_history.htm

The index page has a table containing direct links - subsidiary pages use Milonic menu.

If js disabled - this table is repeated on subsidiary pages but other prompts remain.


Poster: Maz
Dated: Thursday October 28 2004 - 1:45:52 BST

I see you went to all the trouble of setting up images of text, and yet my best suggestion is to not use images and just use menu text. Then apply noscript tags.

I only know the noscript tag, maybe there is another for an if - else statement that I don't know about.

Did you try surrounding it with noscript and that's what you are saying that the images still showed through?

I was hoping someone might know more than me.

maz

Using <noscript> if javascript disabled


Poster: iain_s
Dated: Thursday October 28 2004 - 9:13:04 BST

Sorry I haven't explained this very well.

For my milonic menu I used menu '24' when the menu is positioned to a 1-pixel image. I then placed 4 sub-menus in a (resizable) table (Table 1) stretching across the screen. This works fine.

When js is disabled I have placed another table (Table 2) above this enclosed in <noscript> </noscript> tags. This also works fine when js is disabled. However Table 1 is still visible and taking up screen space. See url http://www.doxeyca.org.uk/dm_history.htm


Poster: Leeson
Dated: Monday November 15 2004 - 13:37:45 GMT

This might be totally stupid (im no html wiz), but is it not possible to comment out the table in <noscript> tags?

Ie:
Code:
<noscript><!--</noscript>
<table>
<tr>
<td>
menuscript
</td>
</tr>
</table>
<noscript>--></noscript>


Poster: iain_s
Dated: Monday November 15 2004 - 15:51:25 GMT

Nice idea but the first "</noscript>" isn't seen because the comment hasn't closed ("-->")

Therefor the whole table is always in a "<noscript> </noscript>" block