i need to call a function when shadowbox is opened and displayed in my page. I try this:
Shadowbox.open({
content: contentD,
player: "html",
title: "Pubblicazione annunci in corso...",
height: 350,
width: 350,
options: {
modal: true,
onOpen: myOpen
}
});
function myOpen(){
alert('ok');
}
My problem is that alert('ok')
is shown before shadowbox is displayed, what can i do? can someone help me?