Bueno, problema resuelto.
aqui les pongo el codigo ganador
Código:
<script type="text/javascript">
var c=0
var t
function timedCountMas(inputName, vnum)
{
hola = inputName;
x = vnum;
document.getElementById(inputName).value=c;
c=c+x;
c=Math.round(c*100)/100;
t=setTimeout("timedCountMas(hola, x)", 66);
}
function timedCountMenos(inputName, vnum)
{
hola = inputName;
x = vnum;
document.getElementById(inputName).value=c;
if (c>0)
{ c=c-x;
c=Math.round(c*100)/100;
t=setTimeout("timedCountMenos(hola, x)", 66); }
}
function stopCount()
{
clearTimeout(t);
}
</script>
<html>
<body>
.
.
<input name='grados' type=text id='grados' value=0 size="5">
<input type="button" value="-" onMouseDown=" timedCountMenos('grados', 1)" onMouseUp="stopCount()" onMouseOut="stopCount()"/>
<input type="button" value="+" onMouseDown=" timedCountMas('grados', 1)" onMouseUp="stopCount()" onMouseOut="stopCount()"/>
.
.
</body>
</html
gracias a hschimpf por la ayuda