Link to home
Start Free TrialLog in
Avatar of johnywhite
johnywhite

asked on

Change background of parent cell

I am trying to change the background of the parent cell of a hyperlink.  What I currently have is <a href="test.html" onmouseover="this.parentNode.style.background-image='url(images/DkBlueSlantedTAB.gif)';"  But the problem is that this returns a syntax error.  Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of johnywhite
johnywhite

ASKER

That works thanks.  It's amazing what a simple hyphen can do.
You can see it as a rule: every hyphen in CSS changes in Script the following character to uppercase and disappears.
Do you have problems closing answered questions?
Click on this: http:viewQuestionHistory.jsp?mid=3478229&orderBy=9&sort=1

Sorry about that.  I only don't close a question when I am waiting for a resolution to the problem.
No problem. See you in the onMouseUp problem.