打破使用Buster的iFrame

时间:2013-03-10 13:52:58

标签: javascript html iframe

我有一个网站,有人使用以下代码强制我的网站不要打破他们的iframe。我已经尝试了所有可用的帧断路器脚本无济于事。任何帮助都会很棒!谢谢伙计们!

Buster: function () {

    var interval = setInterval(function () {

        if (Lbjs.IsClick) {
            clearInterval(interval);
        }
        else if (Lbjs.Unload > 0) {
            Lbjs.Unload -= 2;
            window.top.location.replace("/cancelnavigation/");
            Lbjs.NavigationNotice();
        }
    }, 1);

    var clearDelay = (this.Countdown > 0) ? this.Countdown : 8;
    setTimeout(function () { clearInterval(interval); }, clearDelay * 1000);
},

NavigationNotice: function () {

    var navNotice = document.getElementById("navNotice");
    navNotice.innerHTML = "<span class=\"warning\" style=\"text-align:center;height:20px;width: 400px;padding: 10px;\"><b>Request Cancelled</b> - Navigation is disabled for 8 Seconds...</span>";

    if (navNotice.style.display == "none") {
        this.Fader.FadeIn(navNotice, 200, function () {
            setTimeout(function () {
                Lbjs.Fader.FadeOut(navNotice, 200, null);
            }, 1500);
        });
    }
},

1 个答案:

答案 0 :(得分:0)

检查页面的引荐来源,如果请求来自他们的服务器,只需发送其他内容。

这必须使用服务器平台完成,但无法使用Javascript完成。

相关问题