- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Need help with a syntax error
on my blog Born Squishy, the following js is in the head:
// main navigation init
jQuery('ul.sf-menu').superfish({
delay: , // one second delay on mouseout
animation: {opacity:'',height:''}, // fade-in and slide-down animation
speed: '', // faster animation speed
autoArrows: , // generation of arrow mark-up (for submenu)
dropShadows: // drop shadows (for submenu)
});
In the console of firebug I’m getting a syntax error because of the “,” at the end of the delay line before the comment. This code came with the template and I have no knowledge of js. What do I need to do to fix this?
I don’t see a closing parentheses.
I added a closing parentheses and updated my original post to reflect the change, but I’m still getting a syntax error:
delay: , // one second delay on mouseout
^
It’s because the field is empty.
Solved it, but I’m not sure how. I went into the theme options and resaved (didn’t change anything) the settings and miraculously it’s pulling the information from somewhere and the field isn’t empty anymore.