JQuery-slideshow (friendly drop-and-scroll switching)

Source: Internet
Author: User

Online instance: http://www.lgyweb.com/slider/

[Processing]Here, the image is rotated in a small way: when you are in the status of page 1st, you click Page 5th, and the image scroll is a slide, instead of from 2-3-4-5 (this kind of multi-scroll, see Dizzy );

 

The implementation method is as follows:

 

The rest is source code sharing:

-------Css----------------

{:;:;:;:;:;:;}{:;:;:;}{:;:;:;}{:;:;:;:; :;:;}{:;:;}{:;:;}View Code

----------- HTML ---------------------

Homepage previous 1 2 3 4 5 next last pageView Code

------------- JS --------------

.wrap =.scroll = .wrap.find('.gy-slide-scroll ul'.li = .scroll.find('li'.btn_num = .wrap.find('.gy-slide-btn span'.btn_home = .wrap.find('.gy-slide-home'.btn_end = .wrap.find('.gy-slide-end'.btn_prev = .wrap.find('.gy-slide-prev'.btn_next = .wrap.find('.gy-slide-next'.index = 0;     .refer = 0.ctrl = .len = .move_w = .auto = opt.auto == ?:.speed = opt.speed || 4= _that = = 0( i<.refer : _w = - .move_w; i==.refer : ;:_w = .refer =.li.eq(i).css({'position':'absolute','left':_w+'px','top':0.scroll.stop(,).animate({'left':-_w+'px'},'left':0'style','').eq(i).css({'position':'absolute','left':0,'top':0( callback == 'function'.btn_num.removeClass("gy-slide-cur").eq(i).addClass("gy-slide-cur".btn_prev.add(.btn_next).removeClass("gy-slide-no"(n==0.btn_prev.addClass("gy-slide-no" (n==(.len-1.btn_next.addClass("gy-slide-no" _that =         .btn_num.click((_that.btn_num.index($())==_that.index) (!_that.ctrl) = = _that.btn_num.index($(=         .btn_home.click(= 0        .btn_end.click(= _that.len - 1        .btn_prev.click(($().hasClass("gy-slide-no")) (!_that.ctrl) = --=         .btn_next.click(($().hasClass("gy-slide-no")) (!_that.ctrl) = ++=  _that = (.timer) clearInterval(.timer = setInterval(++(_that.index=== 0.speed*1000 _that = (.wrap.hover(

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.