命令删除explorer_删除Flash对象上Internet Explorer的活动内容警告

命令删除explorer

A couple of years ago Internet Explorer cause millions of programmers and users alike a giant pain by making users click on a flash object, ActiveX object, and java applet before the object became active and usable. Businesses, of course, cried out for their programmers to fix the problem and programmers pulled their hair out for weeks. As one of those programmers, I can tell you that businesses wont take "Microsoft screwed things up" for an answer and luckily I found a solution that works without requiring that the user do anything.

几年前,Internet Explorer通过使用户在对象变为活动和可用状态之前单击Flash对象,ActiveX对象和Java Applet,使数百万程序员和用户倍感痛苦。 当然,企业强烈要求他们的程序员解决问题,而程序员则花了数周的时间。 作为其中一名程序员,我可以告诉您,企业不会接受“微软搞砸了”的答案,幸运的是,我找到了一种解决方案,该解决方案不需要用户做任何事情。

The solutions requires the use a small JavaScript file strategically placed immediately after the Flash object's </object> tag.

解决方案需要使用一个小JavaScript文件,该文件应策略性地放置在Flash对象的</ object>标签之后。

文件 (The File)

flash-fix.js

flash-fix.js

代码 (The Code)

Simply code your <object> code as usual:

像往常一样简单地编写您的<object>代码:


width="200" height="100">





name="my_animcation" width="200" height="100" src="graphics/myanimation.swf" bgcolor="#FFFFFF" quality="high" swliveconnect="true" allowscriptaccess="samedomain">

&lt;script src=&quot;includes/ieupdate.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

That's all you have to do. The JavaScript code grabs the object and sets the object's outerHTML equal to itself, thus nullifying IE's effort to annoy the user.

那就是你要做的。 JavaScript代码捕获对象,并将对象的externalHTML设置为等于其自身,从而使IE烦扰用户的努力无效。

翻译自: https://davidwalsh.name/removing-internet-explorers-active-content-warning-on-flash-objects

命令删除explorer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值