![]() |
Need javascript/firefox help! Any coders online who can look at my code?
On this page I have a table with an ID of "picTable".
I have this javascript code that I am using in order to change the background of the table when a button is moused-over: <script type="text/javascript"> function t(s){ document.getElementById('picTable').background = s; //document.getElementById('picTable').refresh; } </script> and for the button ... <a href="#" onMouseOver="t('/hardware_graphics/pic1.jpg');" onMouseOut="t('/hardware_graphics/image_placeholder.jpg',0);" /> Works perfectly in IE, but not in Firefox. I have used the same script to change other elements and it has worked in FF, but not with the table background image. Also, the refresh tag is in there because I tried it and it didn't make a difference. Thanks a lot for any ideas! |
what (true/false) do you want the function to return and when?
|
also,
<a href="#" onMouseOver="t('/hardware_graphics/pic1.jpg');" onMouseOut="t('/hardware_graphics/image_placeholder.jpg',0);" /> why the closing tag on the <a> link? eg <a href..... /> Is there no link? If not, why the <a> tag? |
Ahh nevermind, made it work by using a regular image to replace rather than table bg image. Not ideal because i have to do some cropping but it will work.
|
| All times are GMT -7. The time now is 11:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123