Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/10/2011, 03:44
Avatar de jor_0203
jor_0203
 
Fecha de Ingreso: octubre-2011
Ubicación: mexico
Mensajes: 760
Antigüedad: 12 años, 6 meses
Puntos: 8
esta funcion debe desplegararse mas rapido y depende del tiempo pero esta muy lenta

mas rápido según el tiempo


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>

<script type="text/javascript">
function mensaje(a){
et=parseInt(document.getElementById(a).style.heigh t);
et++;
document.getElementById(a).innerHTML = et;
document.getElementById(a).style.height=et+"px";

}
</script>


</head>

<body>


<input type="button" id="recoger" value="recoger" onclick=" setInterval(mensaje('capa2'),10 );" /> //esta funcion es para que se desplege rapido
<input type="button" id="recoger" value="recoger" onclick=" setInterval(mensaje('capa3'),10 );" /> /esta funcion es para que se desplege rapido


<div id="capa2" style="width:720px; height:305px; background-color: #CC0000; position:relative;"></div>

<div id="capa3" style="width:720px; height:305px; background-color: #CCFF00; position:relative;"></div>



</body>
</html>