views:

29

answers:

0

I'm working on project that needs to integrate some new HTML work that includes the jQuery overlay plugin. Because of the way it was designed this new page needs to be hosted in an IFrame. The overlay then needs to be created in the parent frame not the innerframe. Has anyone hacked around on this library before know a good fix? I don't really want to run my own "flavor" of the overlay js lib.

Here is the code that wires up the overlay effect on DIVs with the class entry.

    //overlay
    var exposeConfig = { color: '#000', loadSpeed: 200, opacity: 0.8 };
    $('.entry').overlay({
        expose: exposeConfig,
        onBeforeLoad: function () {
            var wrap = this.getContent().find(".contentWrap");
            wrap.load(this.getTrigger().attr("data-href"));
        }
    });