- This topic is empty.
-
AuthorPosts
-
May 8, 2012 at 6:37 pm #37989
BryGuy
Memberon 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?
May 8, 2012 at 6:54 pm #102544theacefes
MemberI don’t see a closing parentheses.
May 8, 2012 at 7:23 pm #102545BryGuy
MemberI 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
^May 8, 2012 at 8:53 pm #102546elneco
ParticipantThis reply has been reported for inappropriate content.
looking at the source, it doesnt seem like you are actually passing any options. maybe just try:
$('ul.sf-menu').superfish();
May 8, 2012 at 9:26 pm #102549TheDoc
ModeratorIt’s because the field is empty.
May 8, 2012 at 9:54 pm #102551BryGuy
MemberSolved 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.
-
AuthorPosts
- You must be logged in to reply to this topic.