Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing the style of another table from one

Status
Not open for further replies.

webmigit

Programmer
Aug 3, 2001
2,027
US
Ok.. I know that you can do rollovers in css using this.className (and other properties)...

Here's my page structure...

Code:
Table "cms"
  Table "content"
    Table "whatiscmsparent"
      Table "whatiscmschild"

How can I edit the classname of whatiscmschild from the onmouseover of table whatiscmsparent?

Thanks,
Tony Did I help?
Vote!
 
if "cms", "content", "whatiscmsparent" and "whatiscmschild"
are unique IDs, you can do what you want in all events by this kind of code :
Code:
alert ("whatiscmschild.classname=" + document.getElementById("whatiscmschild").classname);
Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top