/    Sign up×
Community /Pin to ProfileBookmark

is there a way to get color value using mouse hover?

hello…

im wondering if there is a way for getting the color value using mouseHover and javascript?… if there someone who know how to do it plss share your knoledge.. thanks in advance…

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Jun 26.2007 — If you are talking of an element, you can look into get computed style.

If you are talking some color on an image. JavaScript does not have that built in. Not sure if Canvas would be able to pull it off.

If you are looking to do it just so you can use it personally, you can look into Firefox extensions that do it and the IE developer toolbar.

Eric
×

Success!

Help @johnix 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...