寻她模板站 ┃ 精美源于细节,细节造就成功。
繁体中文    广告服务
百度搜藏    加入收藏
业务咨询
您的位置: 首页 >> 网站建设教程 >> 超级实用的几种表单校验效果收集
超级实用的几种表单校验效果收集 (18)
更新时间:2008-07-17 10:03:20  作者:admin  来源:互联网  浏览次数:82  文字大小:【】【】【
简介:只能是写限定的东西 程序代码: ENTER键可以让光标移到下一个输入框 <input onkeydown='if(event.keyCode==13)event.keyCode=9' > 只能是中文<input onkeyup='value=value.replace(/[ -~]/g,'')' onkeyd ...
    ght='20' align='center'><b>Debug Textarea</b></td>

</tr>

<tr>

<td colspan='2'>

<table width='95%' border='0' align='center' >

<tr>

<td align='center'><br />

<textarea id='txt_ln' name='content' rows='10' style='width:40px;overflow:hidden;height:200px;border-right:0px;text-align:right;line-height:14px' onselectstart='this.nextSibling.focus();return false' readonly></textarea><textarea id='txt_main' name='content' rows='10' cols='80' onkeydown='editTab()' onkeyup='show_ln()' onscroll='show_ln()' wrap='off' style='overflow:auto;height:200px;padding-left:5px;border-left:0px;line-height:14px'></textarea>

<script>for(var i=1; i<=20; i++) document.getElementById('txt_ln').value += i + '\n';</script>

</td>

</tr>

<tr>

<td align='center'><br />

<in

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27]