// Below code is from the article "Drop-Down Menus, Horizontal Style" by Nick // Rigby available at... // // http://www.alistapart.com/articles/horizdropdowns // ---- // IE 7-RC1 - root ID & the hover class for IE are "hardcoded", instead of // being passed when startList is called -- window.onload = startList( rootID, // hoverClass ) -- as that causes IE to have a fit. That could be the right // behaviour or not (currently do not have time to verify or rectify). // // This incidently allows menus to work in IE 6 without use of /js/csshover.htc. // ---- jQuery(document).ready(function() { if ( document.all && document.getElementById ) { root = document.getElementById( "root0" ); if ( root == null || !root.childNodes ) { return; } items = root.getElementsByTagName( "li" ); for ( i = 0; i < items.length; i++) { items[i].onmouseover = function() { this.className += " " + "over"; } items[i].onmouseout = function() { this.className = this.className.replace( " " + "over", "" ); } } } });