Solved

Jquery cycle plugin option usage

Posted on 2010-08-26
2
596 Views
Last Modified: 2013-11-11
Hi
I am using the following Jquery plugin:
http://jquery.malsup.com/cycle/options.html.
I have four links which I want to link to the four different 'slides', so when a user clicks number 2 link it shows number 2 slide.
I suspect one of these options may do it, but there are others:
pager:           null,  // selector for element to use as pager container 
pagerClick:      null,  // callback fn for pager clicks:    function(zeroBasedSlideIndex, slideElement) 

Open in new window


Can anyone suggest what I may do?

Regards
John

0
Comment
Question by:jdav357
2 Comments
 
LVL 15

Accepted Solution

by:
dirknibleck earned 500 total points
ID: 33543346
According to http://jquery.malsup.com/cycle/goto.html, you just call .cycle() with an index number to go directly to a slide, so on click for your links, you will call $(elem).cycle(i) where i is the index of the image you want to display.
0
 
LVL 42

Expert Comment

by:David S.
ID: 33544901
There's an example of using the pager option on this page: http://jquery.malsup.com/cycle/int2.html

And as Dirk said, you could also construct your own.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to deal with the query string 8 37
Hide Table in merge 3 29
How to format numbers and letters in nested lists 5 31
JQuery Detecting page post back 6 6
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question