<input id=a value=0>
<input type=button value="+" onmousedown="tid=setInterval('add()',10)" onmouseup="clearInterval(tid)">
<input type=button value="-" onmousedown="tid=setInterval('de()',10)" onmouseup="clearInterval(tid)"><script>
var tid=null
function add()
{
var m = parseInt(document.all.a.value)
if(m<100)
{
m++
document.all.a.value = m
}
}function de()
{
var m = parseInt(document.all.a.value)
if(m>0)
{
m--
document.all.a.value = m
}
}
</script>
<input type=button value="+" onmousedown="tid=setInterval('add()',10)" onmouseup="clearInterval(tid)">
<input type=button value="-" onmousedown="tid=setInterval('de()',10)" onmouseup="clearInterval(tid)"><script>
var tid=null
function add()
{
var m = parseInt(document.all.a.value)
if(m<100)
{
m++
document.all.a.value = m
}
}function de()
{
var m = parseInt(document.all.a.value)
if(m>0)
{
m--
document.all.a.value = m
}
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货