如何防止从JavaScript,Flash navigateToURL? [英] How to prevent from javascript, Flash navigateToURL?

查看:228
本文介绍了如何防止从JavaScript,Flash navigateToURL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个网站中,我使用第三方Flash文件,但是我想避免使用Flash文件在我的页面上执行重定向。

方法

您必须调整Flash文件本身的代码,恐怕不能阻止它从文件外面(除非第三方文件允许您传入一些设置,但我怀疑是这种情况)。

如果你不想让人们与SWF进行交互,你可以用一个透明的div来覆盖它,所以他们不能再点击它,但是这远不是理想。


In one of my websites I use third-party flash files, but I want to avoid that the flash file to perform a redirect on my page.

解决方案

You'll have to adjust the code of the Flash file itself, I'm afraid you can't prevent it from outside the file (unless the third party file allows you to pass in some settings, but I doubt that's the case).

If you don't want people to interact with the SWF you could try to overlay it with a transparent div so they can't click it anymore, but that's far from ideal.

这篇关于如何防止从JavaScript,Flash navigateToURL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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