• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

jcarousel scrolling

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
coolispaul
Asked:
coolispaul
1 Solution
 
mykdeCommented:
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
 
leakim971PluritechnicianCommented:
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

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now