Solved

Change background of parent cell

Posted on 2006-06-09
6
613 Views
Last Modified: 2011-09-20
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
Comment
Question by:johnywhite
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 16874422
Yes, this one:

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

0
 

Author Comment

by:johnywhite
ID: 16874718
That works thanks.  It's amazing what a simple hyphen can do.
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 16874765
You can see it as a rule: every hyphen in CSS changes in Script the following character to uppercase and disappears.
0
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!

 
LVL 63

Expert Comment

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

0
 

Author Comment

by:johnywhite
ID: 16874940
Sorry about that.  I only don't close a question when I am waiting for a resolution to the problem.
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 16874963
No problem. See you in the onMouseUp problem.
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question