如何通过沙箱禁用iframe上的div元素?

时间:2017-12-25 15:58:02

标签: javascript html iframe sandbox

如何通过沙箱禁用iframe上的div元素?我在互联网上搜索了这个主题,但我没有找到任何关于它的信息,请指导我怎么可能?

在此iframe的源代码中:

<div id="countDown"
                        style="display: ; font-family:verdana; font-size:10px;
                               text-align:center;color:#ffffff;position:absolute;top:182.5px;
                               left:360px; z-index:10000000">Close the ads in 
                               <span id="count">30 </span> seconds
                    </div>
                    <a href="javascript:void(0)" onclick="javascript:hideOverlay('total')" >
                        <img id="closeFrame1" name="closeFrame1" style="position:absolute;top:207.5px;
                            left:312.5px;border:0; z-index:10000011"
                            title="Close" alt="Close" width="12px" height="12px"
                            src="http://www.playerhd2.pw/jwplayer5/x-fonter.gif" />
                    </a>
                                                <div id="second_ads_tmp" class="ad" align="center"
                                style="border: 0px red solid; top:195px; left:287.5px;
                                       z-index:50000012; opacity: 0.0">
                                <IFRAME style="z-index: 1000;" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 
                            SRC='http://vm.timeinabottle.pw/XnewadsX/ads1x300go.html'></IFRAME>
                            <!-- END TAG -->                            </div>
                                    </div>
                <div id="total_banner" onkeydown="return false" style="display: none;" >
                    <div class="container_embed"></div>
                    <div align="center" id="ads_banner1"
                        style="border: 0px blue solid; position: absolute;
                               top:445px; left:0px; width: 100%; height: 90px;
                               z-index:10000010; opacity:0.9">
                                            </div>
                    <a href="javascript:void(0)" onclick="javascript:hideOverlayBanner('total_banner', 'ads_banner1')" 
                        style="display: none;" >
                        <img id="closeFrame_banner" name="closeFrame_banner" style="position:absolute;top:450px;
                            left: 90px ;border:0; z-index:10000011"
                            title="Close" alt="Close" width="12px" height="12px"
                            src="http://www.playerhd2.pw/jwplayer5/x-fonter.gif" />
                    </a>
                                                <div id="second_banner_ads_tmp" align="center" id="ads_banner1_second"
                                style="display: ; border: 0px red solid; position: absolute;
                                       top:445px; left:0px; width: 100%; height: 90px;
                                       z-index:50000012; opacity:0.0">
                                <IFRAME id="secondFrame" style="z-index: 1000; "
                                FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=728 HEIGHT=90
                                SRC="">
                            </IFRAME>                            </div>
                                    </div>

这是我网页上的iframe代码:

<iframe src="http://www.playerhd2.pw/channel.php?file=130&width=890&height=640&autostart=true"
        width="890"
        height="640"
        frameborder="0"
        scrolling="no"
        allowfullscreen
        sandbox="allow-same-origin allow-scripts"></iframe>

0 个答案:

没有答案