开发者

How to hide an element inside HTML iframe?

开发者 https://www.devze.com 2023-01-13 04:25 出处:网络
I have a page that have toolbar at top and an iframe below the toolbar. It is Stumbleupon style. Some web pages that are loading into iframe has flash 开发者_开发技巧objects and those open on my modal

I have a page that have toolbar at top and an iframe below the toolbar. It is Stumbleupon style. Some web pages that are loading into iframe has flash 开发者_开发技巧objects and those open on my modal div. How can I hide flash objects in iframe? You may see it in action here: http://www.yemeklog.com/1-pakistana-yardim-zamani.html Please click on "Yorum" text on toolbar.


As mentioned here already, you cannot modify the pages when they're on other domains.

However, you can solve your problem by placing an iframe behind the modal div. More info and an example (non jquery) you can find here: http://www.ozzu.com/website-design-forum/placing-div-over-flash-iframe-t94789.html


You cannot modify the page content from pages that are on other domains. It is called the same origin policy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号