• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 636
  • Last Modified:

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?
0
johnywhite
Asked:
johnywhite
  • 4
  • 2
1 Solution
 
ZvonkoSystems architectCommented:
Yes, this one:

onmouseover="this.parentNode.style.backgroundImage='url(images/DkBlueSlantedTAB.gif)';"  

0
 
johnywhiteAuthor Commented:
That works thanks.  It's amazing what a simple hyphen can do.
0
 
ZvonkoSystems architectCommented:
You can see it as a rule: every hyphen in CSS changes in Script the following character to uppercase and disappears.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ZvonkoSystems architectCommented:
Do you have problems closing answered questions?
Click on this: http:viewQuestionHistory.jsp?mid=3478229&orderBy=9&sort=1

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now