0

When clicking on a object inside Shadowbox, I want to close the iFrame, and scroll down to the a div in the parent page.

function ShadowClose() {
    window.parent.Shadowbox.close();
   $.scrollTo($('div#myDiv'), 500);
}

This is what I've tried so far, but it doesn't even close Shadowbox.

Any ideas?

4

1 回答 1

1

在关闭 Shadowbox 之前导航到 DIV。

function ShadowClose() {
    $.scrollTo($('div#myDiv'), 500);
    window.parent.Shadowbox.close();
}
于 2014-01-06T11:08:57.333 回答