Dark Knight 0 Posted November 11, 2007 Report Share Posted November 11, 2007 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. Quote Link to post Share on other sites
Synook 47 Posted November 11, 2007 Report Share Posted November 11, 2007 You need to use the assingment operator (=) onmouseover="this.style.border = '1px solid #000000'" onmouseout="this.style.border = '1px solid #FFD700'" Quote Link to post Share on other sites
ScottR 0 Posted November 11, 2007 Report Share Posted November 11, 2007 You could also use CSS: #id {border-color: #000000;}#id:hover {border-color: #FF0000;} Where id is the id of your element, and the border-color is the hexidecimal or named color of your choice. Quote Link to post Share on other sites
Synook 47 Posted November 12, 2007 Report Share Posted November 12, 2007 The above solution will not work in IE 6- unless it is a link. Quote Link to post Share on other sites
SpOrTsDuDe.Reese 1 Posted November 13, 2007 Report Share Posted November 13, 2007 Try assigning an element to the cell. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.