<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> <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></textarea></div>"); <br><input onclick="runEx('runcode73461')" type="button" value="运行代码"> <input onclick="doCopy('runcode73461')" type="button" value="复制代码"> <input onclick="doSave(runcode73461)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]