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!
|