Javascript Q
Javascript Q
- Started
- Last post
- 4 Responses
- acescence0
document.getElementById("mydiv... = newBgColor;
- acescence0
dammit
document .getElementById ( "mydiv" ) .style .backgroundColor = newBgColor;
- BusterBoy0
Thanks mate, worked a treat.
One quick one...could this be modified to change the background image of a page, not just the colour?
- acescence0
document .body .style .backgroundImage = "url(image.jpg)";