0

当 shadowbox 打开并显示在我的页面中时,我需要调用一个函数。我试试这个:

Shadowbox.open({
    content:    contentD,
    player:     "html",
    title:      "Pubblicazione annunci in corso...",
    height:     350,
    width:      350,
    options: { 
            modal:   true,
            onOpen: myOpen
    }
});

function myOpen(){
   alert('ok');
}

我的问题是alert('ok')在显示 shadowbox 之前显示,我该怎么办?有人能帮我吗?

4

1 回答 1

1

将 onOpen 更改为 onClose ;)

Shadowbox.open({
    content:    contentD,
    player:     "html",
    title:      "Pubblicazione annunci in corso...",
    height:     350,
    width:      350,
    options: { 
            modal:   true,
            onClose: myOpen
    }
});
于 2012-05-24T12:17:29.567 回答