/    Sign up×
Community /Pin to ProfileBookmark

highlighting link text

Do I need to make my text for a hyperlink into a .gif file in order to have it highlighted when the mouse hovers over it? Or can I do it an easier way? I’m new at this and quite stuck.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Apr 28.2003 — you can do it with this code snippet.

<a href="url.com" style="color:black;" onmouseover="this.style.color='green';" onmouseout="this.style.color='black';">Link</a>
Copy linkTweet thisAlerts:
@annabeauauthorApr 28.2003 — Wheeeeeeeeee!!!

Thanks a bunch! That worked like a charm!

(I'm wondering now why my beginners JAVA book doesn't have an easy answer like that?!?!?)

Can I ask you more questions as I hit more problems?

You rock!!?
Copy linkTweet thisAlerts:
@khalidali63Apr 28.2003 — Ofcourse you can ask as many as you come accross,thats why good folks of webdeveloper.com created this forum..:-)

One tiny bit of correction though,

this is JavaScript,its nothing even close to Java(Programming Language).JavaScript is a scripting language which is interpreted by browser..

?
Copy linkTweet thisAlerts:
@pyroApr 28.2003 — [i]Originally posted by annabeau [/i]

[B](I'm wondering now why my beginners JAVA book doesn't have an easy answer like that?!?!?)[/B][/QUOTE]
Because it is actually more of a CSS question. This is the CSS answer: http://forums.webdeveloper.com/showthread.php?s=&threadid=7326
Copy linkTweet thisAlerts:
@annabeauauthorApr 28.2003 — Thanks for the correction too. I meant to type "my HTML book". Even so, I did not realize that Javascript and JAVA were completely different.

I really do appreciate both of you taking the time to answer my question!

Cheers!
×

Success!

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