Так и поверить в себя недолго
<head>
<title>Untitled</title>
<style type="text/css">
.DATA {position:absolute;border:none;background:none;border:2px solid black;width: 55px;height: 21px;color:red;text-align:center;font-size:14px;}
.UP {position:absolute;background-color:gray;border:1px solid green;width:20px;height:20px;left: 77px;top: 21px;cursor:pointer;-moz-user-select: none;-khtml-user-select: none;}
</style>
</head>
<body>
<input maxlength="5" id="Attack" class="DATA" style="left: 13px; top: 20px;" type="number" value="3000">
<div class="UP" onmousedown="a='Attack';maxV=3200;up0()" onmouseup="a = !1">UP</div>
<script>
var a = !1;
var maxV ;
function up0(){
setTimeout("up()", 1000)};
function up() {
var b = document.getElementById(a);
if(b.value<maxV){b.value = +b.value + 1;
setTimeout(function () {
up()
}, 10)
}};
</script>