开发者

How to get jQuery gallery to update when thumbnails are rolled over instead of clicked?

开发者 https://www.devze.com 2023-01-12 16:17 出处:网络
I\'m using the jQuery plugin GalleryView and current, when the thumbnails in the galllery are rolled over their opacity gradually becomes 100%, and when clicked, the main frame updates to reflect this

I'm using the jQuery plugin GalleryView and current, when the thumbnails in the galllery are rolled over their opacity gradually becomes 100%, and when clicked, the main frame updates to reflect this thu开发者_高级运维mbnail's image.

I'm trying to change it so that the main image is updated when the thumbnails are rolled over instead of having to be clicked, but I can't seem to find any parameters for this or find the relevent JavaScript inside the plugin to update this.

Any ideas?


The important bits happen in enableFrameClicking(), it looks like this:

function enableFrameClicking() {
  j_frames.each(function(i){
    if($('a',this).length==0) {
      $(this).click(function(){
        //.....
      });
    }
  });
}

To change the event for the thumbnails, you can change that .click() to a .mouseenter().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号