Forums

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

#92065
Mottie
Member

Oops, change the AnythingSlider initialization code to this:

$('#slider').anythingSlider({
theme : 'cs-portfolio',
easing : 'linear',
buildNavigation : false,
buildStartStop : false,

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

onSlideInit: function(e, slider) {
$('#externalNav').find('a')
.removeClass('current')
.eq(slider.targetPage - 1).addClass('current');
},

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

});