smurfy / cloud-zoom

Fork of http://www.professorcloud.com/mainsite/cloud-zoom.htm
111 stars 67 forks source link

How can I use {.cloud-zoom-gallery} click function to mouse over function ? #8

Closed baladkb closed 8 years ago

baladkb commented 8 years ago

Hi @smurfy I'm using your lib it's very use full for us. When I click on the image I can see the preview is this possible to preview while mouse hover on image.

baladkb commented 8 years ago

For your reference below I added the code

else if ($(this).is('.cloud-zoom-gallery')) {
    opts = $.extend({}, relOpts, options);
    $(this).data('relOpts', opts);
    $(this).bind('click', $(this), function(event) {console.log('here I need to add mouse-over function');
     ...
     ....
     if (t != '') {
      ...
     }
         bimg.parent().attr('gallery', event.data.data('relOpts').popupWin);
         $('#' + event.data.data('relOpts').useZoom).CloudZoom();
         return false
        })
       }

please help or suggest something...