Created
July 20, 2012 18:19
-
-
Save raul782/3152383 to your computer and use it in GitHub Desktop.
Snippet fancybox js usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
$("#id").click(function() { | |
$.fancybox({ | |
'padding' : 0, | |
'href' : 'http://www.domain.com/flash.swf', | |
'title' : '', | |
'transitionIn' : 'elastic', | |
'transitionOut' : 'elastic' | |
}); | |
}); | |
$(".classname").fancybox({ | |
'transitionIn' : 'none', | |
'transitionOut' : 'none', | |
'padding' : 0, | |
'overlayOpacity': 0.6, | |
'scrolling' : 'no', | |
'width' :560, | |
'height' : 350 | |
}); | |
$.fancybox({ | |
'padding' : 0, | |
'href' : 'http://www.domain.com/flash-default.swf', | |
'width' : 483, | |
'height' : 427, | |
'autoScale' : false, | |
'title' : 'title', | |
'transitionIn' : 'elastic', | |
'transitionOut' : 'elastic' | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment