Solved

Change background of parent cell

Posted on 2006-06-09
6
584 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
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hide cell in a table 2 26
Generate Numbers in JQuery file 11 66
Index on a Table 6 25
Diminish Pop-up  in 3 seconds 7 44
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

792 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