H
Hartmut J?ger
Hi there,
I defined a div in the HTML body like this one:
<div id="santa" style="position: absolute; top: 400px; left: 700px;">
<img src="grafiken/xmasani.gif" width="96" height="72" border="0">
</div>
When I refer in JavaScript to this <div> with:
document.getElementById["santa"].style.pixelTop = docheight-72;
I always get the error message "document.getElementById.santa has no
properties" in Firefox 1.0 JavaScript Console.
Where is the point of my mistake?
I want to move a GIF-Animation on the document window. In IE6 all runs
well.
Thanks for help. Hartmut
I defined a div in the HTML body like this one:
<div id="santa" style="position: absolute; top: 400px; left: 700px;">
<img src="grafiken/xmasani.gif" width="96" height="72" border="0">
</div>
When I refer in JavaScript to this <div> with:
document.getElementById["santa"].style.pixelTop = docheight-72;
I always get the error message "document.getElementById.santa has no
properties" in Firefox 1.0 JavaScript Console.
Where is the point of my mistake?
I want to move a GIF-Animation on the document window. In IE6 all runs
well.
Thanks for help. Hartmut