Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#fancybox-content a').live('hover', function(){
- $(this).fancybox();
- });
- $(document).ready(function() {
- $("a.openModal").fancybox({
- 'autoDimensions' : false,
- 'width' : 750,
- 'height' : 500,
- 'transitionIn' : 'elastic',
- 'transitionOut' : 'elastic',
- 'titleShow' : false,
- 'hideOnContentClick' : false,
- });
- });
- $(document).ready(function() {
- $("a.openModal").fancybox({
- 'autoDimensions' : false,
- 'width' : 750,
- 'height' : 500,
- 'transitionIn' : 'elastic',
- 'transitionOut' : 'elastic',
- 'titleShow' : false,
- 'hideOnContentClick' : false,
- });
- });
- function initFancybox() {
- $("a.openModal").fancybox({options..., onComplete: initFancybox });
- }
- function initFancybox(selector) {
- if (selector == null) { selector = ""; }
- $(selector+" a.openModal").fancybox({options...,
- onComplete: function() { initFancybox("#fancybox-content"); }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement