javascript-firefox issues

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

javascript-firefox issues

 
0
  #1
Jan 14th, 2006
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)"

Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 275
Reputation: f1 fan is an unknown quantity at this point 
Solved Threads: 11
f1 fan f1 fan is offline Offline
Posting Whiz in Training

Re: javascript-firefox issues

 
0
  #2
Jan 18th, 2006
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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC