Forums

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

Home Forums JavaScript Syntax Error Re: Syntax Error

#104068
karlpcrowley
Participant

Hey, try this

$(function() {

$('#slider1').anythingSlider({

mode: 'f',
resizeContents: false,
navigationSize: 20,
navigationFormatter: function(index, panel) {
return [index - 4];
},
onSlideBegin: function(e, slider) {
// keep the current navigation tab in view
slider.navWindow(slider.targetPage);
//video
resumeOnVideoEnd = true;
resumeOnVisible = true;
//**ERROR ON THIS LINE**
addWmodeToObject = "opaque";
isVideoPlaying = function(base) {
return false;
};

}

});
});‚Äč