canadianjameson
12-10-2004, 06:06 PM
I have a table in which i need certain cells to have a certain background image. I figured the the best way to do this would be as follows:
unfortunantly this code is syntactically incorrect. what is the right syntax?
document.getElementById("backgroundCells").background = 'images/t28_17.gif';
also, i need to apply this to multiple cells on one page, so it cant be document.getElementById is has to be document.getElementByClass.
can i even do this?
unfortunantly this code is syntactically incorrect. what is the right syntax?
document.getElementById("backgroundCells").background = 'images/t28_17.gif';
also, i need to apply this to multiple cells on one page, so it cant be document.getElementById is has to be document.getElementByClass.
can i even do this?