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í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> 
   
 







 
 

