Click to See Complete Forum and Search --> : Fancy Links?


Cindy
04-17-2003, 03:53 PM
hi everyone:)


please help.

I want to know how make a none underline link that when the mosue is placed over (without clicking it) change the color of the text, so you know is an active link...

actually how to change the color of the little square backgroud of the text when the mouse is placed over (without clicking it) will be good to know aswell.

i hope you can help me:)

thank you.

C.

nkaisare
04-17-2003, 05:00 PM
Originally posted by Cindy
I want to know how make a none underline link that when the mosue is placed over (without clicking it) change the color of the text, so you know is an active link...
Did you mean you want an arbitrary text to act like a link text (as in change color when mouse gets over the link)?

If you want to do the hover effect with links, you can use CSS. The following will go in <head></head> in your document.

<style type="text/css">
a {text-decoration: none; color: blue}
a:hover {color: red}
</style>

The :hover pseudo-class (thats its official name :)) can't be applied to an arbitrary element**.
-----

PS:
**: With netscape, :hover works with an arbitrary element, but not with IE