隐藏 iframe - 隐藏时停止其中的脚本
我的页面中有很多以这种方式构建的 iframe:
<iframe style=".....">
<html>
.....
</html>
</iframe>
我想要做的是隐藏 iframe(可能将其存储在 js var 中)并停止其中的脚本(flash 播放、js 函数等),然后激活再次使用 iframe。 我的意思是我想从页面中删除 iframe,然后再次显示它。
看,我的页面中有很多 iframe。大约十个左右。它会减慢浏览器的速度并使其变得迟缓。我正在考虑隐藏 iframe,我不需要让浏览器更快,
可以这样做吗?如何?先感谢您。
I have in my page many many iframes which build this way:
<iframe style=".....">
<html>
.....
</html>
</iframe>
what i want to do is to hide the iframe (maybe store it in js var) and stop the scripts inside it (flash playing , js function and such) and then active the iframe again. what i mean here is that i want to remove the iframe from the page and then show it again.
look , i have many many iframes inside my page. about ten or so. and it slows down the browser and make it laggy. i was thinking about hide the iframe that i don't need to make the browser faster
is it possible to do so? how? thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将无法暂停并隐藏它们。不过,您可以摆脱它们并将它们带回来。这只会重新执行您的脚本并重新启动您的闪存。
JS
You won't be able to pause and hide them. You can get rid of them and bring them back though. This will just re-execute your scripts and restart your flash though.
JS