[Plugin: Shadowbox JS] Integrate zoom function help
-
Hello,
First of all, congratulations on the great plugin!I’m trying to integrate a zoom feature (like a magnifying glass) into images on the sb img player but I’m having some difficulties.
I’m using this script: jacklmoore.com/zoom/
The problem is that when I try to initialize the zoom script on the #sb-player image I get an error:
“TypeError: $(“#sb-player”) is null”I assume this happens because shadowbox isn’t loaded yet.
Is there anyway I can call the zoom function only after the image is loaded?
I’ve read about “onChange” and “onOpen”, but where can I use these with shadowbox js for wordpress?The function to intialize the zoom is:
$('#sb-player').zoom();Thank you in advance,
André
The topic ‘[Plugin: Shadowbox JS] Integrate zoom function help’ is closed to new replies.