Click to See Complete Forum and Search --> : Cascading Menu - Highlighting Items


Karameldelite
05-17-2004, 10:49 AM
Hello,
I'd really appreciate any help with this topic. I'm new to java script and I'm creating a vertical cascading menu that has several levels of sub-menus. Is there a way to control which menu item is highlighted when you do a mouse over? For example, if I have four menu items and I point the mouse at menu item 2, then menu item 2 and menu item 4 will both highlight. Any suggestions? Help, please!
Thanks in advance,
Karameldelite

Fang
05-18-2004, 02:37 AM
<div id="div1" onmouseover="this.style.color='red'; document.getElementById('div2').style.color='red';">div1</div>
<div id="div2">div2</div>