I’m looking for code: I have pre-made web pages with 10 images (inside tables) on each. I’m seeking code that will change the background to a tiled display of each image as it is rolled over.
@fredmvJun 02.2004 — #[i]Originally posted by Jona [/i]
[B]document.body.style.backgroundImage = src;[/B][/QUOTE]Would not work. Since a background image is defined like this in CSS:background-image: url(foo.png);You must also use the same notation in JavaScript, thus:document.body.style.backgroundImage = 'url(' + src + ')';