
15/08/2013, 11:40
|
 | | | Fecha de Ingreso: diciembre-2011 Ubicación: bilbao
Mensajes: 39
Antigüedad: 13 años, 1 mes Puntos: 0 | |
mover pixel a pixel un div hola buenas me gustaría hacer una consulta si me pueden ayudar en el siguiente código ay un div que quiero que se mueva horizontalmente desde el borde izquierdo cada 5 pixeles hasta digamos el centro de la pantalla:
<html>
<head>
<script type="text/javascript">
function moverIzquierda()
{document.getElementById("b1").style.left= ;}
</script>
<style>
#b1{position:absolute;top:50%;left:0px;width:30px; height:30px;background-color:black;}
</style>
</head>
<body>
<div id="b1" onload="moverIzquierda()"></div>
</body>
</html>
__________________ _____________________________
___________DARK ELF__________
_____________________________ |