Syntax help - dynamically writing a table's background image

admin

Administrator
Staff member
Okay - now that I've got the dynamic background color thing, it ought to be simple to dynamically write a background IMAGE for a table - right?

It seemed like this would work
document.getElementById("proxytable").style.backgroundImage.src = 'images\/cube.gif';

or this
document.getElementById("proxytable").style.backgroundImage = 'images\/cube.gif';

or maybe this
document.getElementById("proxytable").style.background.src = 'images\/cube.gif';

but I just ain't gettin' it - I know there's some dumb syntax error I'm making. Wish I could find a comprehensive reference that would show usage of all these things.

Any ideas?
 
Back
Top