So you are trying to add a class to a slide when you're looking at it? Or are you trying to add a class to the slider when you're looking at a certain slide?
Or what?
Anyways, you can grab the current slide like this
var current = $('#slider1').data('AnythingSlider').currentPage; // returns page #
And then implement it with jQuery.
But I don't know how to watch for a change in the AnythingSlider, as I've never used it myself.
Does anyone know how? (Like $("#slider").change(function()) except I don't think that's right)
Something like this!add class orange when Slide 1 is current or add class blue when Slide 2 is current
Thanks is advance!!
Alex
Or are you trying to add a class to the slider when you're looking at a certain slide?
Or what?
Anyways, you can grab the current slide like this
And then implement it with jQuery.
But I don't know how to watch for a change in the AnythingSlider, as I've never used it myself.
Does anyone know how? (Like $("#slider").change(function()) except I don't think that's right)
I think these images will do a better Job
Slider 1
Slider 2
Thanks again for your help...
That's exactly what I need can I do to more than one element, sorry my Jquery skills are almost none :S
id="nav1" class="menu active" <-- active slide<br />
id="nav2" class="menu"
id="nav3" class="menu"
id="nav4" class="menu"
id="nav1" class="menu"
id="nav2" class="menu active" <-- active slide after hitting next<br />
id="nav3" class="menu"
id="nav4" class="menu"
what would that look like?