Thread: JavaScript question

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    4

    Question JavaScript question

    i have a qusiton on javascript, im trying to make it so when you put your mouse over a link, the link will change colors. I used the script down below, but it changes all my links to a different color.

    <a href="null.html" onMouseOver="linkColor='green'" onMouseOut="linkColor='blue'">

    if you know, please tell me...it has to be easy, but i just cant figure it out!?!?!

  2. #2
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    well, you could try

    <style>
    a{color:888800;text-decoration:none}
    a:hover{color:FF8800;text-decoration:none}
    </style>

    at the head, instead of doing Java?

    and if for some reason you must do it in java, try instead of linkColor, just "color", or "this.color"


    Oskilian

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    4

    Arrow Well,

    i tried the color and this.color, but none of them worked...ill try your lil scrpy

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. JavaScript book recommendations
    By neandrake in forum Tech Board
    Replies: 2
    Last Post: 04-05-2009, 12:27 PM
  2. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  3. Replies: 2
    Last Post: 03-10-2009, 08:36 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM