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:
func
Instead of myFunc() use myFunc. In javascript, a function with parens (and/or args) means you want to call it. A function name without them means you just want a reference to that function (which is probably what fancybox wants from you)
myFunc()
myFunc