...

View Full Version : Changing Classes



xcom923
02-11-2004, 01:31 AM
Is there a way to change the class of a section in a table??

like:

TD=document.getElementsByTagName("td)

TD[1].=====


From there I'm kinda lost I know there is a way to do it but I'm not sure. Oh by the way the class I'm refering to is from a style sheet. It already has one class I just want to change it's class then change it back (making a highlight effect when highlighted)

Antoniohawk
02-11-2004, 04:17 AM
<td onMouseOver="this.className = 'hilight'" onMouseOut="this.className = 'regular'">

xcom923
02-11-2004, 08:39 PM
thanks it's not written how I needed it but I got the info I wanted.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum