mouse over text

edited December 2004 in Internet & Media
is there a script that can make is so when your mouse goes over any text it changes to a different color? :confused:

Comments

  • KwitkoKwitko Sheriff of Banning (Retired) By the thing near the stuff Icrontian
    edited December 2004
  • edited December 2004
    can you give me the code?
  • edited December 2004
    the link you have is a link over, i want plain text
  • KwitkoKwitko Sheriff of Banning (Retired) By the thing near the stuff Icrontian
    edited December 2004
    Did you click on the link that refers to this very question you had asked already?
  • ThraxThrax 🐌 Austin, TX Icrontian
    edited December 2004
    He's right, Seth. The link you gave him is for link rollovers only; he wants code that applies to plain text.
  • KwitkoKwitko Sheriff of Banning (Retired) By the thing near the stuff Icrontian
    edited December 2004
    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>
  • edited December 2004
    thanks for the code but where do i put it like in the head of the body? :confused:
  • edited December 2004
    oooooooo, nevermind, i get it
Sign In or Register to comment.