Hello,
I have problem with fancybox.
I want to write a function that will run when the fancybox opened. How and when to call the function?
Example:
function myFunc() {
alert("Opened!");
}
$('.content a').fancybox({
'hideOnContentClick': false ,
'callBackOnShow': myFunc(), // This not working! It call function when page is loaded
'frameWidth': 920,
'frameHeight': 530
});