Let me break it down for you:
onmouseover="imageOn(bg-index);" onmouseout="imageOff(bg-index);"
I've got these two attributes set on a table
tagged with ID table-title
. These functions are included in an external JS file:
If the name is 'bg-index', then document.getElementById("table-title").style.backgroundImage = "url('images/bg-index.png')"; }
...and similar for imageOff
but using a different image. However, this setup isn't functioning as expected; can you offer any insight into what might be wrong?