Hartmut J?ger wrote:
> 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;
That is a function you need to call with () e.g.
document.getElementById("santa")
Also pixelTop is not a property defined in CSS so use
document.getElementById("santa").style.top = (docheight-72) + 'px';
--
Martin Honnen
http://JavaScript.FAQTs.com/