?
Solved

Change background of parent cell

Posted on 2006-06-09
6
Medium Priority
?
622 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 2000 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Suggested Courses

743 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