Código :
<script language="javascript">
var suma=100;
function crecera(){
var a=setInterval("hazAlgo()",100);
if(suma==200){
clearInterval(a);}
}
function hazAlgo(){
var este=document.getElementById("crecer");
este.firstChild.nodeValue=suma;
suma=suma+1;
este.style.height=suma;
}
</script>
<style>
#crecer{
width:700;
height:100;
background-color:ddff00;}
</style>
</head>
<body>
<div id="crecer" onMouseOver="crecera()"onMouseOut="decrecera()">
Zas
</div>
y quiero que cuando el alto de crecer llegue a 200 se detenga, para eso habia usado el clearInterval pero no me funciona
