Jump to content

Quick Simple Problem...


clonetrooper9494
 Share

Recommended Posts

Ok, I have a span, and need to have it highlighted onmouseover, and highlighted back to normal onmouseout. I have it saying this:

<span onmouseover="this.style.background-color = 'BBBBBB'" onmouseout="this.style.background-color = 'EEEEEE'" style='background-color:EEEEEE;'>TEXT</span>

But it isn't working... could anybody help me?

Link to comment
Share on other sites

You forgot hashes on the hex color codes:<span onmouseover="this.style.background-color = '#BBBBBB'" onmouseout="this.style.background-color = '#EEEEEE'" style='background-color:#EEEEEE;'>TEXT</span>

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...