PDA

View Full Version : Smoothmenu drop down arrows



McKinley
10-12-2011, 10:17 PM
1) Script Title: Smoothmenu drop down arrows

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm

3) Describe problem:
I have an "in-house" application that we're developing. Sometimes, when a user goes to the page, the dop down list in the menu doesn't show up. They have to navigate to an external page (like google.com), and go back to the page and refresh for the menu to work right. Any suggestions on how to fix this?

djr33
10-12-2011, 11:26 PM
Unless this is a problem on the demo page, you will need to provide us with a link to your page so we can test it.

jscheuer1
10-12-2011, 11:32 PM
Is it just the arrows that don't show up? If so, you could try preloading them. Add this highlighted code at the very end of the ddsmoothmenu.js script script as shown:


. . . else{ //else if markup menu
ddsmoothmenu.buildmenu($, setting)
}
})
}

} //end ddsmoothmenu variable

;(function(ims){
var p = [];
for (var i = ims.length - 1; i > -1; --i){
p[i] = new Image();
p[i].src = ims[i];
}
})([ddsmoothmenu.arrowimages.down[1], ddsmoothmenu.arrowimages.right[1]]);

If it's something else, please be specific. Also, put up a demo of the problem somewhere on the web where we can see it.