Adding mouseover color

liunx

Guest
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

___________________________________________________________<!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>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. :confused:

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>

.................................................................................................... .
 
Back
Top