yes you can, however you will need to use a combination of CSS and Javascript. for standards browsers (Basically all BUT Internet Explorer) you can just use the tag, however because IE doesnt support the psuedo selectors for any tag but anchor, you will need to encorporate a javascript hack.
ANCHOR TAG ( <a href=''>...</a> )
Code:
<a class="changeBlue" href="/path/to/file.ext">Link</a>
put this wherever you need the link
Code:
a.changeBlue:link { /* default link color */
color: #000000;
}
a.changeBlue:hover { /* change to blue on mouseover */
color: #0000ff;
}
put this in your stylesheet
NON - ANCHOR TAG
Code:
<p class="changeBlue">THIS IS SOME TEXT THAT I WANT CHANGED TO BLUE<p>
put this in your <body> tag, whereever you want the change to occur.
Code:
p.changeBlue { /* creates the default color as black */
color: #000000;
}
p.changeBlue:hover { /* changes the color of the text to blue on mouseover */
color: #0000ff;
}
put this in your css stylesheet
Code:
<script type="text/javascript">
document.getElementByClass('changeBlue').onmouseover.style.color = "#0000ff;';
</script>
put this in your <head> tag.
Bookmarks