JS大师需要!为什么这不起作用? [英] JS Guru needed! Why doesn't this work?

查看:85
本文介绍了JS大师需要!为什么这不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使Javascript被禁用,我的网页也需要优雅地展开,但是

我不能让它工作吗?


请帮忙,Javascript大师!!


< noscript>

document.write(''< span class = warning>< b>警告< / b>:您必须启用

javascript才能使此页面正常工作!< / span>'')

< / noscript>


非常感谢,

Ann

My pages need to unfold gracefully even if Javascript is disabled, but
I can''t get this to work?

Please help, Javascript Gurus!!

<noscript>
document.write(''<span class=warning><b>Warning</b>: You must enable
javascript for this page to work properly!</span>'')
</noscript>

Thanks so much,
Ann

推荐答案

你的代码中有一些悖论......

如果Javascript被禁用(或者在真的很旧的浏览器上不可用),那么它就意味着它无法执行任何类型的JS。

当没有JS.uh时你要求执行一些JS? :-)

意思是:

< noscript>

< span class = warning>警告,你必须......< / span>

< / noscript>


Antoine

There is some paradox in your code...
If Javascript is disabled (or unavailable on "really old" browser), it
means it cannot execute any kind of JS.
And you''re asking to execute some JS when there is no JS.uh ? :-)
Means :
<noscript>
<span class=warning>Warning, you must...</span>
</noscript>

Antoine


Giggle Girl说以下是2005年11月21日上午10:30:
Giggle Girl said the following on 11/21/2005 10:30 AM:
即使Javascript被禁用,我的页面也需要优雅展开,但是我不能让它工作吗?

请帮助,Javascript Gurus !!

< noscript>
document.write(''< span class = warning>< b>警告< / b> ;:您必须启用
javascript才能使此页面正常工作!< / span>'')
< / noscript>
My pages need to unfold gracefully even if Javascript is disabled, but
I can''t get this to work?

Please help, Javascript Gurus!!

<noscript>
document.write(''<span class=warning><b>Warning</b>: You must enable
javascript for this page to work properly!</span>'')
</noscript>




< noscript>

< span class =" warning">我不知道如何让我的页面工作

javascript禁用所以你必须来返回启用脚本的浏览器

查看可能不值得一看的页面< / span>

< / noscript>


-

兰迪

comp.lang.javascript常见问题 - < a rel =nofollowhref =http://jibbering.com/faqtarget =_ blank> http://jibbering.com/faq &新闻组每周

Javascript最佳实践 - http://www.JavascriptToolbox .com / bestpractices /



<noscript>
<span class="warning">I do not have a clue how to make my page work with
javascript disabled so you must come back with a script enabled browser
to see a page that probably isn''t worth seeing to start with</span>
</noscript>

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/




Randy Webb写道:

Randy Webb wrote:
< noscript>
< span class =" warning">我不知道如何让我的页面工作,
javascript已禁用,因此您必须返回启用脚本的浏览器
才能看到页面这可能不值得一看,以< / span>
< / noscript>
<noscript>
<span class="warning">I do not have a clue how to make my page work with
javascript disabled so you must come back with a script enabled browser
to see a page that probably isn''t worth seeing to start with</span>
</noscript>




< noscript>

< span class =" warning">

我的网络应用程序主要基于JavaScript。我不知道为什么

你关闭了JavaScript,但你必须再打开它来使用我的

应用程序。我个人无意为我的应用程序制作两个相同的

版本:一个适用于普通访问者,另一个适用于少数

dumb a **和你一样。其他什么使用JavaScript?所以我很害怕

这是你迈出的一步。

< / span>

< / noscript>


我认为这个警告文本要好得多。



<noscript>
<span class="warning">
My web application is based heavily on JavaScript. I have no idea why
did you turn JavaScript off, but you have to turn it on again to use my
application. I personally have no intention to make two equivalent
versions of my application: one for normal visitors, other one for few
dumb a** like you. Othervise what use JavaScript at all? So I''m affraid
this is your step to make.
</span>
</noscript>

I dend to believe that this warning text is much better.


这篇关于JS大师需要!为什么这不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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