View Single Post
Old 09-04-2003, 06:52 PM   #1 (permalink)
EscapeCharacter
GNU/Punk
 
EscapeCharacter's Avatar
 
Join Date: Jul 2002
Location: stuffs
Posts: 66
EscapeCharacter is on a distinguished road
Send a message via AIM to EscapeCharacter
table cell highlight and text change on mouseover

ive been working on this and i cant seem to find a want to get the hyperlink text in the cell to change. ive tried document.getElementById('tagname').style.foregroun dColor but that doesnt work nor does .color. has anyone ever done this? ive got the cell to change color using the following
Code:
function switchTab1(t){
	if(document.getElementById){
		document.getElementById(t).style.backgroundColor = "#000000";
		document.getElementById('tab2').style.backgroundColor = "#ffffff";
		document.getElementById(t).style.color = "#ffffff";
	}
	else if(document.layers){
		document[t].bgColor = "#000000";
		document['tab2'].bgColor = "#ffffff";
	}
	else if(document.all){
		document.all[t].style.backgroundColor = "#000000";
		document.all['tab2'].style.backgroundColor = "#ffffff";
	}
}
but i cant figure out how to change the font color when the mouse is over the cell and not just over the text itself.
__________________
cd /usr/ports/misc/life && make install
EscapeCharacter is offline   Reply With Quote