Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. $('#fancybox-content a').live('hover', function(){
  2. $(this).fancybox();
  3. });
  4.  
  5. $(document).ready(function() {
  6. $("a.openModal").fancybox({
  7. 'autoDimensions' : false,
  8. 'width' : 750,
  9. 'height' : 500,
  10. 'transitionIn' : 'elastic',
  11. 'transitionOut' : 'elastic',
  12. 'titleShow' : false,
  13. 'hideOnContentClick' : false,
  14. });
  15. });
  16.  
  17. $(document).ready(function() {
  18. $("a.openModal").fancybox({
  19. 'autoDimensions' : false,
  20. 'width' : 750,
  21. 'height' : 500,
  22. 'transitionIn' : 'elastic',
  23. 'transitionOut' : 'elastic',
  24. 'titleShow' : false,
  25. 'hideOnContentClick' : false,
  26. });
  27. });
  28.  
  29. function initFancybox() {
  30. $("a.openModal").fancybox({options..., onComplete: initFancybox });
  31. }
  32.  
  33. function initFancybox(selector) {
  34. if (selector == null) { selector = ""; }
  35. $(selector+" a.openModal").fancybox({options...,
  36. onComplete: function() { initFancybox("#fancybox-content"); }
  37. });
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement