Hi foreros
My question is really basic and simple:
I only want to have a div moving horizontaly on the screen, on loading the document. I have tried many syntaxes, and nothing moves there.
So I need help with this.
the code for the page must be very simple:

...
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 339px;
top: 34px;
background-color: #CCFF66;
}
-->
</style>
<script language="javascript" type="text/javascript">
function movercapa(){
var cuadro=document.offsetLeft.Layer1;
cuadro.left=spot;
{for (i=1; i<1000; i++; ) }
spot= spot+i;


</script>
</head>

<body >
<script type="text/javascript"> window.onload=movercapa();</script>

<div id="Layer1">esta capa se mover&aacute; </div>
</body>
</html>

Sure I'm doing things really really wrong, but I am a beginner!
Thanks in advance for your interest.
Ana