I’m using the fancybox jQuery plugin and right now, it’s being called with a click event. I want to change this so that fancybox is called with a different event but I’m not sure where in the source code fancybox is being binded to the click event. Can someone point out the line that this is happening?
Thanks!
Two answers: 😉
You can use the "trigger" function of jQuery to launch
the click event you have configured for the fancybox,
so if your fancybox is initialized as:
you can open that fancybox with only a:
OR you can make a manual call for wathever event you want:
There are part of the trip’n tricks of Facnybox page:
tips & tricks