Hi all,

I've got an instance of jCarousel set up to spit out a list of thumbnails at the top (using a view). These don't link to pages, they are anchors that open the related content on the page using some jQuery bits I plugged in at document.ready.

That stuff is simple, but jCarousel isn't letting me do anything right now. More specifically, the idea of determining which carousel item you're currently on (via a CSS class inserted at doc ready in to the relevant list item) and setting that as the first item by manipulating options.start and options.offset. This is needed because there will be a lot of thumbnails, and erases the need for the end user to have to scroll to their current carousel item. The problem with this though (it seems) is that options.offset and options.start don't appear to be unlocked for anything but an integer, and I need to set said options from a CSS class that I have set further down the chain (at doc ready).

Any ideas anyone? Tearing my hair out, and will appreciate any advice. I think what I need to do is plug in to an existing carousel from another js file at doc ready and change the options there (after it's already loaded). Is that possible, and if it is, does anyone know how I can do it?

Thanks all!

Kris

Comments

rougekris’s picture

Any help?

rougekris’s picture

Bump, still need a solution for this.

mvc’s picture

this can be implemented via #1401652: Set the start position based on a CSS selector and a views template which adds a CSS class to the appropriate image in the carousel.
see also #936932: Setting jcarousel start position to last position user saw for another solution.

mvc’s picture

Status: Active » Closed (duplicate)