0

Hi to all fancybox lovers. How do i insert helpers here:

     $(document).mouseleave(function() {
         $.fancybox("#feedback_form");
     });​

I 've got stuck there.

Marios Fakiolas
  • 1,525
  • 1
  • 12
  • 19

2 Answers2

2

(I guess) you can do:

     $(document).mouseleave(function() {
         var options = {
           openEffect: 'elastic',
           helpers: {
             title: {
               type: 'inside'
             }
           }
         };
         $.fancybox("#feedback_form", options);
     });​
macool
  • 659
  • 6
  • 11
0

The question is not really clear, but my guess is that you are looking for something like this?

 $(document).mouseleave(function() {
         $("#feedback_form").show(); // this will remove the 'display:none'
         $("#feedback_form").fancybox();
 });​
Tys
  • 3,592
  • 9
  • 49
  • 71