Can I use text as a mouse rollover like a pic?

They have: 21 posts

Joined: Mar 2000

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Not quite sure what you are going for, but a qualified yes.

You can, with some pretty tricky finessing to get it to work cross-browser, use layers to make the text change.

You can also just add onMouseOver to any text link and have things happen, like an image somewhere else change, an image beside the text link change, et cetera.

More detailed question gets you a more detailed answer.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 21 posts

Joined: Mar 2000

Im sorry about that. I was wondering if you could change text into a different color or into diff text, kind of like a mouseover with images. So if I had the word red in white text, and when I put my mouse over it, it would turn red.

They have: 122 posts

Joined: Jun 1999

http://www.insidedhtml.com/tips/styles/ts31/page1.asp Hope that is what you were looking for.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

CSS will do that for IE and for Netscape 6 (whenever it is stable).

It's the a:hover declaration, and it must be after the a:link and a:visited and a:active declarations in your stylesheet.

I don't think it's worth it to use DHTML for what is essentially just a little visual trick.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.