如果关闭javascript,请制作替代菜单? [英] Making alternative menu if javascript is turned off?

查看:38
本文介绍了如果关闭javascript,请制作替代菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我找到了一些菜单功能。它工作得很好,但我怎么能用一个简单的< a href>来替换它?
如果javascript被关闭了?


我将我的代码缩减为:

< script> IncludeMenuHere()< / script>


更多,有关褪色的提示进出菜单项(x-browser)?

目前它正在使用DIV和this.items [i] .visibility(false);


-

-Gernot


发布在这里,不要发邮件。如果您觉得必须邮寄,请将我的

名称从:
到****************************** @ invalid.com

________________________________________

寻找好游戏?亲自动手吧!

GLBasic - 你可以这样做
www.GLBasic .com

推荐答案

Gernot Frisch写道:
Gernot Frisch wrote:
我找到了一些菜单功能。它工作得很好,但我怎么能用一个简单的< a href>来代替它呢?如果javascript被关闭了?

我将我的代码缩减为:
< script> IncludeMenuHere()< / script>
I have found some menu functions. It works quite well, but how can I
replace it with a simple <a href> if javascript is turned off?

I reduced my code to:
<script>IncludeMenuHere()</script>




< script> IncludeMenuHere()< / script>

< noscript>< a href =" http://www.example.com/menu/"> Menu< ; / a>< / noscript>


-

Klaus Johannes Rusch
Kl ******** @ atmedia.net
http://www.atmedia.net/KlausRusch/


Klaus Johannes Rusch写道:
Klaus Johannes Rusch wrote:
我找到了一些菜单功能。它工作得很好,但我怎么能用一个简单的< a href>来代替它呢?如果javascript被关闭了?

我将我的代码缩减为:
< script> IncludeMenuHere()< / script>
I have found some menu functions. It works quite well, but how can I
replace it with a simple <a href> if javascript is turned off?

I reduced my code to:
<script>IncludeMenuHere()</script>



<脚本> IncludeMenuHere()< / script>
< noscript>< a href =" http://www.example.com/menu/">菜单< / a>< / noscript> ;



<script>IncludeMenuHere()</script>
<noscript><a href="http://www.example.com/menu/">Menu</a></noscript>




脚本 - Noscript不太可能是

功能性DHTML菜单与无导航之间的真实关系。没错,那些根本不会执行脚本的浏览器会使用noscript元素,但是有一个或多或少的具有javascript功能的浏览器的灰色咏叹调 br />
动态,可能会或可能不会促进

脚本所需的操作。留下任何不支持菜单,但正在执行

脚本而没有任何导航。


可以对问题应用各种策略,其中最简单的

可能只是提供HTML链接到站点地图,并在那里留下

,无论菜单是否有效。但功能强大的动态

DHTML菜单意味着能够操作HTML页面内容,因此它可以用于确认支持的菜单和


功能隐藏/删除替代导航。


总体而言,最可行的策略可能是在页面上定义导航

菜单比方说,嵌套的UL列表,并有菜单

脚本尽可能将这些元素修改为动态菜单。离开

所有缺少支持菜单的浏览器显示完整导航为

部分页面内容。


Richard。



Script - Noscript is unlikely to be the true relationship between a
functional DHTML menu and no navigation. True, the browsers that will
not execute scripts at all will use the noscript element, but there is a
big grey aria of javascript capable browsers that are more or less
dynamic and may or may not facilitate the actions required by the
script. Leaving any that don''t support the menu but are executing
scripts without any navigation.

Various strategies may be applied to the problem, of which the simplest
is probably just to provide a link to a site map in the HTML and leave
it there regardless of whether the menu works. But a functional dynamic
DHTML menu implies the ability to manipulate HTML page contents so it
would be possible for a menu that has verified that it is supported and
functional to conceal/remove alternative navigation.

Overall, probably the most viable strategy is to have the navigation
menus defined on the page as, say, nested UL lists, and have the menu
script modify those elements into a dynamic menu when possible. Leaving
all browsers that lack support for the menu showing full navigation as
part of the page contents.

Richard.


>总的来说,最可行的策略可能是在页面上定义导航
> Overall, probably the most viable strategy is to have the navigation
菜单,比如嵌套的UL列表,并让
菜单脚本将这些元素修改为动态菜单。可能。
让所有缺少支持菜单的浏览器显示完全导航
作为页面内容的一部分。
menus defined on the page as, say, nested UL lists, and have the menu script modify those elements into a dynamic menu when possible. Leaving all browsers that lack support for the menu showing full navigation as part of the page contents.




这听起来不错,但我不喜欢我绝对不知道该怎么做。这是一个很好的主题,是吗?

这是我到目前为止的菜单:
http://GLBasic.com


-Gernot



That sounds nice, but I don''t absolutely know how to do this. It''s an
sophisitcated topic, is it?
Here''s my menu so far:
http://GLBasic.com

-Gernot

这篇关于如果关闭javascript,请制作替代菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆