<div class="htmlarea"> <textarea id="runcode73461"> <style> div.IPDiv{background:#ffffff;width:120;font-size:9pt;text-align:center;border:2 ridge threedshadow;border-right:inset threedhighlight;border-bottom:inset threedhighlight; } input.IPInput{width:24;font-size:9pt;text-align:center;border-width:0; } </style> </textarea> <br> <input onclick="runEx('runcode73461')" type="button" value="运行代码"><input onclick="doCopy('runcode73461')" type="button" value="复制代码"><input onclick="doSave(runcode73461)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank"> </a>[Ctrl A 모두 선택 참고: </div>외부 J를 도입해야 하는 경우 실행하려면 새로 고쳐야 합니다 <script language="JScript" for="document" event="onkeydown"> if(event.keyCode==13)event.keyCode=9; </script>]<script language="JScript"> var IPlikeInputStr=[]; for(var i=0;i<4;i++)IPlikeInputStr[i]="<input class=IPInput name=IPInput type=text size=3 maxlength=3 onkeydown='if(event.srcElement.value.length==3||event.keyCode==39)event.keyCode=9'>"+(i==3?"":"."); document.write("<div class=IPDiv>"+IPlikeInputStr.join("")+""); </script>