Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/08/2013, 10:54
Avatar de nenu_racso90
nenu_racso90
 
Fecha de Ingreso: diciembre-2011
Ubicación: bilbao
Mensajes: 39
Antigüedad: 12 años, 4 meses
Puntos: 0
funcion incrementar left

como podria hacer una funcion queincremente elvalor del left para mover de 0 (inicial) a el medio de la pagina
<html>
<head>
<style type="text/css">
#caja{position:absolute;
left:0%;
top:50%;
width:50px;
height:50px;
background-color:red;
}
</style>

<script>

funcion mover(){
document.GetElementById('caja').style.left =necesito el codigo k iria aqui ;
}



</script>

</head>

<body onload="mover()">

<div id="caja"></div>



</body>
</html>
__________________
_____________________________
___________DARK ELF__________
_____________________________