Hi there,
I am having a similar issue, but the functionality I want to achieve
is a bit simpler. Right now I want to apply a link of my choosing to
each slide (in the HTML of the slide), but t this breaks the alt
information pulled from the the pager and displays an "undefined"
error on the page.
the details you want to display can also be contained elsewhere if you
want by using the index of the current slide to match the index of
another set of containers
function onAfter(curr, next, opts) {
var index = opts.currSlide;
// use index to refernece other contai
Thanks guys,
Using that, this is what i have:
$(function() {
$('#slides').before('').cycle({
fx: 'fade',
speed: 'fast',
timeout: 0,
pager: '#nav',
after: onAfter
});
});
f
> I would like to add another attribute to the img tag called "link."
>
> This attribute would define where the image would link to if someone
> clicks the image.
>
> Then i could do something like: .append('' + this.alt + ' Read more ›');
>
> Does anyone know what/where i can add in the cycle js
you can use the "before" and "after" options in the API to write
functions that trigger on each slide to do what you want
Mescalero wrote:
I would like to add another attribute to the img tag called "link."
This attribute would define where the image would link to if someone
clicks the i
5 matches
Mail list logo