Advertisement
Guest User

Show Fancy box on moseover and hide on mouse out

a guest
Jul 25th, 2012
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     $(".fancybox-film").fancybox({
  3.         padding: "2px",
  4.         arrows: false,
  5.         closeBtn: false,
  6.         nextClick: false,
  7.         helpers: {
  8.         title : "null",
  9.         overlay : {
  10.                     speedIn : 500,
  11.                     opacity : 0.95
  12.                   }    
  13.         },
  14.         'onComplete'    :   function() {
  15.                                 $("#fancybox-wrap").hover(function() {                                
  16.                                 }, function() {
  17.                                     $.fancybox.close();
  18.                                 });
  19.                             }              
  20.         }).hover(function() {
  21.             $(this).click();
  22.     });
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement