954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

javascript-firefox issues

I have the following code which changes the background image of table cells when mouse over. It only seems to work in IE. I don't think it worked in Safari either.

function menuRollOver(tID)
{
	 tID.background="images/menu_highlight.gif";
}
 
function menuRollOut(tID)
{
	 tID.background="images/menu_normal.gif";
}





Some html for my table cell:

<td onmouseover="menuRollOver(this)" onmouseout="menuRollOut(this)"
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 

Dont quote me but i think ie is a little less strict on interpretation of some css features than others. you might try background-image and see if it works. You may even have to code both, one for ie and one for firefox (seems like half my css is coding for different browsers! I even have an iefix.css file on half my sites!

f1 fan
Posting Whiz in Training
279 posts since Jan 2006
Reputation Points: 26
Solved Threads: 11
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You