View Full Version : mouse over text
thegamerguy
25 Dec 2004, 7:45pm
is there a script that can make is so when your mouse goes over any text it changes to a different color? :confused:
Kwitko
25 Dec 2004, 8:17pm
Yes. (http://www.short-media.com/forum/showthread.php?t=25226)
thegamerguy
25 Dec 2004, 9:29pm
can you give me the code?
thegamerguy
25 Dec 2004, 9:30pm
the link you have is a link over, i want plain text
Kwitko
25 Dec 2004, 9:31pm
Did you click on the link that refers to this very question you had asked already?
He's right, Seth. The link you gave him is for link rollovers only; he wants code that applies to plain text.
Kwitko
25 Dec 2004, 10:46pm
I'm sorry, I feel like an idiot. You're right, it's not the same question.
Anyway...
<span onMouseOver="this.style.color = 'red';" onMouseOut="this.style.color = 'black';">This is a test</span>
Try it:
<span onMouseOver="this.style.color = 'red';" onMouseOut="this.style.color = 'black';">This is a test</span>
You don't have to use span. p or h1 or most tags work just as easily:
<p onMouseOver="this.style.color = 'red';" onMouseOut="this.style.color = 'black';">omfghi2u!!!!!1lolorz</p>
<h1 onMouseOver="this.style.color = 'red';" onMouseOut="this.style.color = 'black';">omfghi2u2!!!!!1six</h1>
thegamerguy
25 Dec 2004, 11:00pm
thanks for the code but where do i put it like in the head of the body? :confused:
thegamerguy
25 Dec 2004, 11:00pm
oooooooo, nevermind, i get it
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.