blob: 31d2379cdfaf4aa51a99974f1990bcfaf404a222 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<p>
<label>
%type%:
</label>
<span class="spinner"><a id="type_%id%_down" href="#">-</a><input type="text" id="type_%id%" name="type_%id%" value="%value%" /><a id="type_%id%_up" href="#">+</a></span>
<script type="text/javascript">
document.getElementById("type_%id%_up").onclick = function(e){
document.getElementById("type_%id%").value = (parseInt(document.getElementById("type_%id%").value) + 101) % 100;
return false;
};
document.getElementById("type_%id%_down").onclick = function(e){
document.getElementById("type_%id%").value = (parseInt(document.getElementById("type_%id%").value) +99) % 100;
return false;
};
</script>
</p>
|