For some reason, it just doesn't execute the onComplete
function. However, it loads the fancybox div. My html:
<ul> <li class="orange"> #1 <a href="#text">click here</a> <div id="text" class="text">text text text</div> </li> </ul>
My jquery:
jQuery('li a').fancybox({ 'autoDimensions': 'false', 'width' : 631, 'height': 256, 'onComplete':function(){ alert('running'); jQuery('.fancybox-skin').css('background-color',colour); } });
warning does not start. I also tried changing the function of the event to onClosed
and other events, and nothing.
source share