문제

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?

도움이 되었습니까?

해결책

Navigate to the DIV before you close Shadowbox.

function ShadowClose() {
    $.scrollTo($('div#myDiv'), 500);
    window.parent.Shadowbox.close();
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top