escribi esto:
Código:
la funcion start corre el setinterval con la funcion move(element) donde element representa el bloque que quiero modificar, pero no funciona. Lo unico que hace es modificar el width a 1 y no hace nada mas...<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="newcss.css"/>
</head>
<body>
<div id="bloque" class="bloque" onclick="start()"></div>
<script>
var bloque=document.getElementById("bloque");
function move(element){
element.style.width=(element.style.width+1)+'px';
}
function start(){
var id=setInterval(move(bloque),10);
}
</script>
</body>
</html>
quiero saber porque


