本文介绍了Internet Explorer JavaScript怪异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



大家好,全部:


我有一个JavaScript搜索引擎,总是让MSIE 7做一个

top页面安全性警告 (那个页面顶部的栏,而不是

" alert" [对话框])...但是其他网站的'JavaScripts不会触发

那......发生了什么事?当我访问其他JavaScript网站时,没有任何警告,并且脚本工作正常,但我的(它仍然在

构建,离线)场合警告我必须手动

允许MSIE在MSIE的每个新会话中运行JavaScript ....


另外(与JavaScript无关,但我可能还要问,如果

它可以帮助任何),我有一个动画.jpg拒绝加载MSIE 7

虽然Opera 9和Firefox 2显示完美。

TIA !!


Hi, All:

I have a JavaScript search engine that always causes MSIE 7 to do a
top-of-page security "warning" (that top-of-page-bar, and not an
"alert" [dialog box])...but other websites'' JavaScripts do not trigger
that...what''s going on? When I visit other JavaScript sites there''s
no warning and the scripts work fine, but mine (it''s still under
construction, offline) occasions that warning and I have to manually
allow MSIE to run JavaScript every new session of MSIE....

Also (nothing to do with JavaScript, but I might as well ask, in case
it helps any), I have an animated .jpg that refuses to load in MSIE 7
though Opera 9 and Firefox 2 display that perfectly.
TIA!!

推荐答案



JavaScript搜索引擎(MSIE 7,与所有基于MSHTML的UA一样,提供了
JScript代替)使用被MSIE认为不安全的ActiveX / COM对象

7.其他网站您已经检查过或者没有定义

将在另一个安全区域中,其中适用的限制较少。


这根本就不是猜测游戏。发布一些代码或搜索网址

引擎。




没有动画.jpg,除非资源名称后缀不是

表示您案件中的文件格式(与MSIE的坏主意)。 JPEG是

不是允许动画的图像格式(缺少渐进式渲染),

你必须使用GIF89a或MNG(唉,后者只有限制

支持)。

PointedEars

-

var bugRiddenCrashPronePieceOfJunk =(

navigator .userAgent.indexOf(''MSIE 5'')!= -1

&& navigator.userAgent.indexOf(''Mac'')!= -1

)// Plone,register_function.js:16

There are no "animated .jpg", unless the resource name suffix is not
indicative of the file format in your case (bad idea with MSIE). JPEG is
not an image format that allows animation (short of progressive rendering),
you have to use GIF89a or MNG for that (alas, the latter only with limited
support).
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf(''MSIE 5'') != -1
&& navigator.userAgent.indexOf(''Mac'') != -1
) // Plone, register_function.js:16




好​​吧,有一个cookie涉及......但这从来就不是问题

之前! 事实上,直到我手动关闭它,我才自动获取cookie,同时从MSIE收到警告。

Well, there''s a cookie involved...but that''s never been an issue
before! ''Matter of fact, until I manually turned it off, I was
getting cookies automatically, while getting that warning from MSIE.



这是脚本结束于<

index.shtml> ...我只是稍微修改了一下不要以为

这就是我做过的任何事情......发布的时间太长了,即使

只是结束了五十行左右......

It''s the script over at <http://javascriptkit.com/script/script2/jse/
index.shtml>...I''ve only modified it very slightly and don''t think
it''s anything I''ve done...it''s rather too long to just post, even if
only just over fifty lines or so....



感谢您的参考...虽然我没有注意到任何与MSIE相关的具体内容

古怪....

Thanks for the ref...though I didn''t notice anything specifically
relating to MSIE weirdness....



对不起,你是什么意思MSIE的坏主意?操作系统给出的文件怎么可能会误导?

Sorry, what do you mean "bad idea with MSIE"?? And how could the file
extension given by the OS itself be misleading??



但是WinXP说JPEG当然!


?!?!

But WinXP says "JPEG" for sure!

?!?!



这篇关于Internet Explorer JavaScript怪异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-10 23:14