/    Sign up×
Community /Pin to ProfileBookmark

Cascading Menu – Highlighting Items

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

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 18.2004 — <div id="div1" onmouseover="this.style.color='red'; document.getElementById('div2').style.color='red';">div1</div>
<div id="div2">div2</div>
×

Success!

Help @Karameldelite spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...