“undefined” appearing next to text in CSS Drop-Down menu, why?
Posted: 26 July 2010 05:05 PM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2010-07-26

Hello everyone,

I am having a problem with a CSS drop-down menu. The menu works fine, as you can see here:

 

http://littlebuddymedia.com/help/011.html

 

But the text “undefined” appears next to the main menu options. My question is, why?

 

I have narrowed the problem down to this chunk of code:

<div class="chromestyle" id="chromemenu">
<
ul>
<
li><a href="http://www.dynamicdrive.com">Home</a></li>
<
li><a href="#" rel="dropmenu1">Resources</a></li>
<
li><a href="#" rel="dropmenu2">News</a></li>
<
li><a href="#" rel="dropmenu3">Search</a></li>
</
ul>
</
div

If you remove the rel=“dropmenu1” portion of the code, the word “undefined” no longer appears, but then the menu doesnt drop-down anymore.

 

Any ideas?

 

If it is needed:

Here is the CSS file: http://littlebuddymedia.com/help/chrometheme/chromestyle.css

Here is the JS file: http://littlebuddymedia.com/help/chromejs/chrome.js

 

Thank you.

Profile