| // 自行处理按钮 switch (nKeyCode) { case 8:// 如果动作是退格[<-] { strText = strText.substr(0,nCursorPos-1) + strText.substr(nCursorPos, nTextLen-nCursorPos); nCursorPos--; break; } case 46:// 如果动作是del[del] { strText = strText.substr(0,nCursorPos) + strText.substr(nCursorPos+1,nTextLen-nCursorPos-1); nCursorPos--; break; } case 38:// 如果动作是方向键[上] case 39:// 如果动作是方向键[右] { nCursorPos++; break; } case 37:// 如果动作是方向键[左] case 40:// 如果动作是方向键[下] { nCursorPos--; break; } default : { strText = strText.substr(0,nCursorPos) + String.fromCharCode(nKeyCode) + strText.substr(nCursorPos,nTextLen); nCursorPos++; } if (strText.match(expMask)) // 移动光标 // 得到一个文本框控件的当前光标位置 |
收藏地址:http://www.qqread.com/asp/w421723000.html进入讨论组讨论。
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- 绝对免费顶级域名+免费500MB ASP?? (728次浏览)
- 利用X-Scan找ASP木马后门 (68次浏览)
- ASP连接十一种数据库的常用语法 (47次浏览)
- ASP连接数据库错误解决办法新法 (32次浏览)
- ASP编程入门进阶 (0次浏览)
- Asp备份与恢复SQL Server数据库 (0次浏览)
- Asp+的几个特点 (0次浏览)
- ASP:在结果中搜索 (0次浏览)
- asp 中对 ip 进行过滤限制函数 (0次浏览)
- ASP 指南 (0次浏览)



