I have a JS function that I want to change the background of a <div> with the id="HLimg". It uses an external stylesheet if that makes a difference.
Code:
document.HLimg.style.backgroundImage="url(../images/thumbs/waltdisney.jpg)";
When I run the code I get the error
Quote:
|
'document.HLimg.style' is null or not an object
|
Any ideas?
__________________
DVD Movie Release Database: Please login or register to view this content. Registration is FREE
|