PDA

View Full Version : MouseOver text


SpongeBobby
08-21-2002, 06:20 AM
I have seen where the link will be white, then you put the mouse on it and it changes color...How is that done? Is it some what like you would do the background of a table?

onMouseOver="this.style.backgroundColor=' ';" onMouseOut="this.style.backgroundColor=' ';"

or is there a CSS way?



Thanks,

x_goose_x
08-21-2002, 06:26 AM
CSS!

<style>
A {
background-color: red;
}
A:hover {
background-color: blue;
}
</style>


<a href="url.htm">Link</a>

SpongeBobby
08-21-2002, 06:29 AM
Thanks goose but i was meaning just the text, not the bg, altho that is useful later on, so i saved it :)


Do u know how to do JUST the text?


Thanks,

The Wizzard
08-21-2002, 06:30 AM
<style>
A {
color: red;
}
A:Hover {
color: blue;
}
</style>