Solved

jcarousel scrolling

Posted on 2011-09-22
2
282 Views
Last Modified: 2012-05-12
hi

jcarousel allows you to scroll between each item with a next and previous button/link

as i am scrolling 1 item at a time i would like each item/image to be clickable so that once clicked it scrolls onto the next image.

Does anyone know how to achieve this?

Cheers
0
Comment
Question by:coolispaul
2 Comments
 
LVL 3

Expert Comment

by:mykde
ID: 36582933
I believe that this can be accomplished by simply adding the class "jcarousel-next" to the <li> element that contains the image.
jcarousel-next

Open in new window

0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36584059
Try this (put it at the end, inside $(document).ready(function() { :


$("img",".jcarousel-list").click(function() { $(".jcarousel-next").trigger("click"); });

Open in new window

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

713 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