View Full Version : fancybox not working...

07-07-2010, 07:59 AM
Site: http://bit.ly/cpPNuL

The video image of the lady in the sidebar is supposed to pop up with Fancybox. I added a class "fancybox", loaded all the necessary scripts and css and fired it up with the following code; however, no dice. Can someone take a look at it and let me know where I went wrong?

jQuery(".fancybox").click(function() {
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'width' : 400,
'height' : 265,
'href' : this.href.replace(new RegExp("([0-9])","i"),'moogaloop.swf?clip_id=$1'),
'type' : 'swf'

return false;


07-07-2010, 10:45 AM
Wrap everything above in a document.ready() so it actually gets called:

jQuery(document).ready(function() {
// do stuff