The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anythingslider problem – Active page Re: Anythingslider problem – Active page


Oops, change the AnythingSlider initialization code to this:

theme : 'cs-portfolio',
easing : 'linear',
buildNavigation : false,
buildStartStop : false,

onInitialized: function(e, slider) {
.find('a').eq(slider.currentPage - 1).addClass('current');

onSlideInit: function(e, slider) {
.eq(slider.targetPage - 1).addClass('current');

// (swipe for ifags)
clickForwardArrow: "click",
clickBackArrow: "click",
clickControls: "click focusin",
resumeOnVideoEnd: true,
addWmodeToObject: "opaque"