Hallo Angela.
body {background: #fff url(images/bg_content.gif) repeat-y left top;}
document.body.style.background = "#fff url(images/bg_content.gif) repeat-y left top";
So müsste es gehen.
<script type="text/javascript">
document.getElementsByTagName("body")[0].style.backgroundImage = "url(bild.jpg)";
</script>
..das ist so nicht richtig oder?
Ja, das muss allerdings im body stehen.
Man liest sich, H2O
--
Dodwin | Download Opera
[ie:% fl:( br:< va:) ls:[ fo:| rl:( n4:( ss:) de:> js:| ch:? sh:( mo:| zu:}](http://www.peter.in-berlin.de/projekte/selfcode/?code=ie%3A%25%20fl%3A(%20br%3A%3C%20va%3A)%20ls%3A%5B%20fo%3A%7C%20rl%3A(%20n4%3A(%20ss%3A)%20de%3A%3E%20js%3A%7C%20ch%3A%3F%20sh%3A(%20mo%3A%7C%20zu%3A%7D)
Dodwin | Download Opera
[ie:% fl:( br:< va:) ls:[ fo:| rl:( n4:( ss:) de:> js:| ch:? sh:( mo:| zu:}](http://www.peter.in-berlin.de/projekte/selfcode/?code=ie%3A%25%20fl%3A(%20br%3A%3C%20va%3A)%20ls%3A%5B%20fo%3A%7C%20rl%3A(%20n4%3A(%20ss%3A)%20de%3A%3E%20js%3A%7C%20ch%3A%3F%20sh%3A(%20mo%3A%7C%20zu%3A%7D)