> Dear Folks, > > This is tangentially related to this list, since I am trying to > improve the simple suckerfish.js code at > http://www.htmldog.com/articles/suckerfish/hover/ to be able to use > classes as well as ids, in my continued effort to to solve my problems > with CSS horizontal menus mentioned above. > > Now I can see that Javascript provides getElementsByTagName(), > getElementsById() and getElementsByName(). My question is: > > How do I implement the equivalent of getElementsByClass() (which as > far as I can see, is not built into Javascript?). > > As you can guess, I am totally new to Javascript, and a beginner at > CSS.
Yes, so why do you try to solve all the problems on your own? http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/ is an implementation of getElementsByClassName, and nearly every JavaScript library out there has similar solutions. As to implementing more than one multi level dropdown menus on a page: Have you considered the users without CSS or JavaScript? Do they really need all these options? -- Chris Heilmann Book: http://www.beginningjavascript.com Blog: http://www.wait-till-i.com Writing: http://icant.co.uk/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/