944,050 Members | Top Members by Rank

Ad:
Jan 14th, 2006
0

javascript-firefox issues

Expand Post »
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.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1.  
  2. function menuRollOver(tID)
  3. {
  4. tID.background="images/menu_highlight.gif";
  5. }
  6.  
  7. function menuRollOut(tID)
  8. {
  9. tID.background="images/menu_normal.gif";
  10. }


Some html for my table cell:
<td onmouseover="menuRollOver(this)" onmouseout="menuRollOut(this)"

Similar Threads
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004
Jan 18th, 2006
0

Re: javascript-firefox issues

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!
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Product List and Order Form Submit
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Compare two text feilds





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC