Jump to content

onmouseover change border color?


Dark Knight
 Share

Recommended Posts

i'm having a problem with this code:

onMouseover="this.style.border: 1px solid #000000;" onMouseout="this.style.border: 1px solid #FFD700;"

This code should change the border of a cell when the mouse is over that cell. but it dosen't work. where is the problem? thanks for your posts.

Link to comment
Share on other sites

You need to use the assingment operator (=)

onmouseover="this.style.border = '1px solid #000000'" onmouseout="this.style.border = '1px solid #FFD700'"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...