/    Sign up×
Community /Pin to ProfileBookmark

onmouseover + onclick problem

hi
i have a problem coding a menu
i have 4 links on menu and clicking on items should expand a DIV and change the menu item image.
also rollover has to change the image too
i mean 3 conditions for every menu item: normal, rollover, clicked.
i have no problem with rollover
but when item is been clicked and image changes, image has to change on mouse over again, but has not to change to original image on mouse out.
also clicking on another menu item has to change the previous item image to original.

i’m confused enough
i tried by samples over and over.
but the main problem is that i dont know js syntaxes and coding
however, anybody could help???

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @bacherostam 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,
)...