<script language=javascript >
function MoveToNextTB(field)
{
if(field.value.length == field.maxLength)
{
var index=field.name.replace(/T/,'')
if(parseInt(index)<3)
{
document.getElementById('T'+(parseInt(index)+parseInt(1))).focus()
}
}
}
</script>
<p>
<input type="text" id=t1 name="T1" size="10" maxlength=2 onkeyup ="javascript:MoveToNextTB(this);">
<input type="text" id=t2 name="T2" size="11" maxlength=3 onkeyup ="javascript:MoveToNextTB(this);">
<input type="text" id=t3 name="T3" size="10" maxlength=4 onkeyup ="javascript:MoveToNextTB(this);"></p>
function MoveToNextTB(field)
{
if(field.value.length == field.maxLength)
{
var index=field.name.replace(/T/,'')
if(parseInt(index)<3)
{
document.getElementById('T'+(parseInt(index)+parseInt(1))).focus()
}
}
}
</script>
<p>
<input type="text" id=t1 name="T1" size="10" maxlength=2 onkeyup ="javascript:MoveToNextTB(this);">
<input type="text" id=t2 name="T2" size="11" maxlength=3 onkeyup ="javascript:MoveToNextTB(this);">
<input type="text" id=t3 name="T3" size="10" maxlength=4 onkeyup ="javascript:MoveToNextTB(this);"></p>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货