Home › Forums › JavaScript › Anythingslider problem – Active page › Re: Anythingslider problem – Active page
December 5, 2011 at 10:28 am
#91912
Mottie
Member
Hi Quantum4!
LMAO I love the comment in your slider initialization code. Basically you’ll need to add this css
#externalNav.current {
color: #F8B334;
}
and this code to the slider initialization code:
$('#slider').anythingSlider({
theme : 'cs-portfolio',
easing : 'linear',
buildNavigation : false,
buildStartStop : false,
onSlideInit: function(e, slider) {
$('#externalNav').find('a')
.removeClass('current')
.eq(slider.currentPage - 1).addClass('current');
},
// (swipe for ifags)
clickForwardArrow: "click",
clickBackArrow: "click",
clickControls: "click focusin",
resumeOnVideoEnd: true,
addWmodeToObject: "opaque"
});
And the last comma after “opaque” needs to be removed or IE will hissy fit.