开发者

jquery cycle with previous and next previews

开发者 https://www.devze.com 2022-12-18 16:10 出处:网络
I have created a slideshow using the jquery cycle plugin with previous and next buttons. What i am trying to do is when the user hovers the previous or the next button to get a tooltip with a preview

I have created a slideshow using the jquery cycle plugin with previous and next buttons. What i am trying to do is when the user hovers the previous or the next button to get a tooltip with a preview of the previous or the next image respectively. Any ideas on how to ach开发者_JS百科ive something like that?


For the tooltip: http://craigsworks.com/projects/qtip/

For the next/previous image, you'll need to keep the data somewhere before showing it - like a hidden div. Qtip takes a 'content' parameter that you can populate with inner-html from any element on the page using jQuery(selector).html().

I.E:

jQuery(next_button_selector).qtip(
 {
   content:{ 
     text: jQuery(hidden_div_that_wraps_image_selector).html()
   }
 });


Try this jQuery carousel plugin Hero-Carousel

0

精彩评论

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