/ Published in: HTML
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<link rel="stylesheet" type="text/css" href="js/fancybox/jquery.fancybox-1.3.4.css" media="screen" /> <script type="text/javascript"> \$(document).ready(function() { /* Basic Fancybox example */ \$("a#example2").fancybox({ 'overlayShow' : true, 'overlayColor' : '#000', 'overlayOpacity' : 0.4, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'titlePosition' : 'over' }); /* Gallery Fancybox example */ \$("a[rel=example_group]").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { } }); }); </script>