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

Home Forums JavaScript Syntax Error Re: Syntax Error

Taufik Nurrohman

I tried to detect your error code with JSFiddle’s JSLint:

Extra comma:


And some unclosed function.
How about this:

// Set up Sliders
// **************
$(function() {
mode: 'f',
resizeContents: false,
navigationSize: 20,
navigationFormatter: function(index, panel) {
return [index - 4];
onSlideBegin: function(e, slider) {
// keep the current navigation tab in view
resumeOnVideoEnd: true,
resumeOnVisible: true,
addWmodeToObject: "opaque",
isVideoPlaying: function(base) {
return false;