Leider verschiebt dies das Hintergrundbild NICHT:
Was nicht stimmt an:
Code:
<div id='hintergrund' style='width: 900px; height: 600px; padding: 0px; border: 0px; background-image: url(../pix/back_see.jpg); position: absolute; top: 0px; left: 0px;'></div>
<script type='text/javascript'>
backgroundPositionX=0; backgroundPositionY=0;
backgroundPositionX++; backgroundPositionY++;
document.getElementById("hintergrund").style["backgroundPosition"] = backgroundPositionX + "px " + backgroundPositionY + "px";
</script>
Was nicht stimmt an:
Code:
document.getElementById("hintergrund").style["backgroundPosition"] = backgroundPositionX + "px " + backgroundPositionY + "px";