/    Sign up×
Community /Pin to ProfileBookmark

Adding mouseover color

Hi… I’m new here. ?

Can anyone please improve this code/script so the
text turns red (#ff0000) with a mouseover ???
(and… by still keeping it simple)

<center>
<span style=’cursor:hand;text-decoration:none;
‘onclick=’window.external.AddFavorite(location.href,document.title);’>
<font face=”arial” size=”2″>
<b>Click here to add this page to your favorites</b></font></span>
</center>

Much appreciated….thanx ?

Easy… Justin


___________________________________________________________

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@the_treeJun 28.2005 — [code=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<title>A page worth adding to your favorites</title>
<style type="text/html">
<!--
p.dynamic, p.dynamic *{
color: #000;
text-align: center;
cursor:hand;
text-decoration:none;
font-family: arial, sans-serif;
font-size: 0.9em;
font-weight: 900;
}
p.dynamic, p.dynamic *:hover{
color: #f00;
}
//-->
</style>
<script type="text/javscript">
<!--
function addfav()
{window.external.AddFavorite(location.href,document.title);}
//-->
</script>
</head>
<body>
<script type="text/javascript">
<!--
document.write("<p class='dynamic'><a onclick='addfav();'>Click to add this page to your favorites.</a></p>");
//-->
</script>
<noscript>
<p class="dynamic">Remember to add this page to your favorites.</p>
</noscript>
</body>
[/code]
Copy linkTweet thisAlerts:
@Intrepid_PrezauthorJun 28.2005 — Hmmm...

I still can't get the text to change color with the mouseover...

either by copying the whole of the above code/script

or by adding bits and pieces of it to my original script. ?

Is there a way just to add a just line or two to my original code/script ???

It works fine... I just need the text to highlight (red) with the mouseover.

Easy... Justin

....................................................................................................

<span style='cursor:hand;text-decoration:none;

'onclick='window.external.AddFavorite(location.href,document.title);'>

Add this page to your favorites</span>

.....................................................................................................
×

Success!

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