View Full Version : Help with Smooth Navigational Menu

01-18-2011, 04:43 PM

Hi. I am just learning jQuery, and I appreciate your scripts.

I have created a test page using your Smooth Navigational Menu script, but it only shows the top-level menus - not the arrow images or the sublevel menus.
My test page is here: http://www.godaytripping.com/smoothmenutest.htm .
jQuery is installed off the root in /jquery, and seems to be working for another script okay.

It's probably something very simple that I'm doing wrong, but it doesn't work in any of my 3 browsers. As a last resort I placed the .css files, the .js file, and the arrow images in both the /jquery folder and the root folder where the page resides. But nothing seems to work.

Thank you for any advice you can offer.

01-18-2011, 10:55 PM
In case I wasn't clear: I copied the example code for that menu script to my server and it doesn't work. The only things I changed was to remove the horizontal menu and the pointer to the jQuery library (I changed it from Google to my local copy).

Does anyone have any idea what I'm doing wrong?


01-18-2011, 11:02 PM
It seems that your ddsmoothmenu.js is somehow corrupted.
if you replace it with the original file found here (http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.js), the menu will work.
And for the arrows to appear you would have to specify the right path to the images in this line:
arrowimages: {down:['downarrowclass', 'down.gif', 23], right:['rightarrowclass', 'right.gif']},

01-19-2011, 11:28 AM
Hi azoomer! You nailed it - I had a corrupt .js file. Thank you so much!

Now a noob question if you don't mind: I guess I wrongly assumed that the .js files were pure ASCII and could be opened with any editor, but my editor apparently corrupted it. Do I need a special editor for .js files?

Also, my arrow images show up now, although they do show immediately after the menu caption rather than at the end of the menu bar. Not sure about that yet.

Thank you again. I had tried everything I could think of.