How to remove suckerfish JS error

Add this line of code to suckerfish.js file

 

if (document.getElementById("nav") == null) return;

It looks like —

sfHover=function(){
if (document.getElementById("nav") == null) return;
var sfEls=document.getElementById("nav").getElementsByTagName("LI");
for(var i=0;i<sfEls.length;i++){
sfEls[i].onmouseover=function(){
this.className+=" sfhover"}
sfEls[i].onmouseout=function(){
this.className=this.className.replace(new RegExp(" sfhover\\b"),"");}
}
}
if(window.attachEvent)window.attachEvent("onload",sfHover);

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s