[原创]如何用Javascript控制textbox的输入法
2005-07-05 13:34
525 查看
active代表输入法为中文
inactive代表输入法为英文
auto代表打开输入法
disable代表关闭输入法
active
inactive
auto
disable
<div style="BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; Z-INDEX: 103; LEFT: 304px; BORDER-LEFT: 1px dotted; WIDTH: 304px; BORDER-BOTTOM: 1px dotted; POSITION: absolute; TOP: 306px; HEIGHT: 160px; BACKGROUND-COLOR: ghostwhite" ms_positioning="GridLayout"> <input id=act style="Z-INDEX: 101; LEFT: 24px; WIDTH: 96px; POSITION: absolute; TOP: 40px; HEIGHT: 22px" onclick="this.style.imeMode='active'" size=10 height="107692336"> <input id=inact style="Z-INDEX: 102; LEFT: 160px; WIDTH: 96px; POSITION: absolute; TOP: 40px; HEIGHT: 22px" onclick="this.style.imeMode='inactive'" size=10 name=Text1 height="36424328">
<div style="DISPLAY: inline; Z-INDEX: 103; LEFT: 24px; WIDTH: 70px; POSITION: absolute; TOP: 16px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>active</p>
</div>
<div style="DISPLAY: inline; Z-INDEX: 104; LEFT: 160px; WIDTH: 70px; POSITION: absolute; TOP: 16px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>inactive</p>
</div>
<input id=auto1 style="Z-INDEX: 105; LEFT: 24px; WIDTH: 96px; POSITION: absolute; TOP: 112px; HEIGHT: 22px" onclick="this.style.imeMode='auto'" size=10 name=Text1 height="107692720"> <input id=disab1 style="Z-INDEX: 106; LEFT: 160px; WIDTH: 96px; POSITION: absolute; TOP: 112px; HEIGHT: 22px" onclick="this.style.imeMode='disabled'" size=10 name=Text2 height="36425352">
<div style="DISPLAY: inline; Z-INDEX: 107; LEFT: 24px; WIDTH: 70px; POSITION: absolute; TOP: 88px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>auto</p>
</div>
<div style="DISPLAY: inline; Z-INDEX: 108; LEFT: 160px; WIDTH: 70px; POSITION: absolute; TOP: 88px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>disable</p>
</div>
</div>
inactive代表输入法为英文
auto代表打开输入法
disable代表关闭输入法
active
inactive
auto
disable
<div style="BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; Z-INDEX: 103; LEFT: 304px; BORDER-LEFT: 1px dotted; WIDTH: 304px; BORDER-BOTTOM: 1px dotted; POSITION: absolute; TOP: 306px; HEIGHT: 160px; BACKGROUND-COLOR: ghostwhite" ms_positioning="GridLayout"> <input id=act style="Z-INDEX: 101; LEFT: 24px; WIDTH: 96px; POSITION: absolute; TOP: 40px; HEIGHT: 22px" onclick="this.style.imeMode='active'" size=10 height="107692336"> <input id=inact style="Z-INDEX: 102; LEFT: 160px; WIDTH: 96px; POSITION: absolute; TOP: 40px; HEIGHT: 22px" onclick="this.style.imeMode='inactive'" size=10 name=Text1 height="36424328">
<div style="DISPLAY: inline; Z-INDEX: 103; LEFT: 24px; WIDTH: 70px; POSITION: absolute; TOP: 16px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>active</p>
</div>
<div style="DISPLAY: inline; Z-INDEX: 104; LEFT: 160px; WIDTH: 70px; POSITION: absolute; TOP: 16px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>inactive</p>
</div>
<input id=auto1 style="Z-INDEX: 105; LEFT: 24px; WIDTH: 96px; POSITION: absolute; TOP: 112px; HEIGHT: 22px" onclick="this.style.imeMode='auto'" size=10 name=Text1 height="107692720"> <input id=disab1 style="Z-INDEX: 106; LEFT: 160px; WIDTH: 96px; POSITION: absolute; TOP: 112px; HEIGHT: 22px" onclick="this.style.imeMode='disabled'" size=10 name=Text2 height="36425352">
<div style="DISPLAY: inline; Z-INDEX: 107; LEFT: 24px; WIDTH: 70px; POSITION: absolute; TOP: 88px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>auto</p>
</div>
<div style="DISPLAY: inline; Z-INDEX: 108; LEFT: 160px; WIDTH: 70px; POSITION: absolute; TOP: 88px; HEIGHT: 15px" ms_positioning="FlowLayout">
<p>disable</p>
</div>
</div>
相关文章推荐
- [原创]javascript中如何控制动态生成的表格位置?
- 如何控制asp.net控件TextBox输入内容的长度--(多种方法)
- [VB.NET]请问题如何使用 正值表达式 来控制使用者Textbox控件输入内容?
- JavaScript 如何 在onclientclick里控制onclick的执行
- 如何在程序中自动控制切换中英文输入法?
- [原创]WCF技术剖析之二十三:服务实例(Service Instance)生命周期如何控制[第1篇]
- [原创]WCF技术剖析之二十三:服务实例(Service Instance)生命周期如何控制[第2篇]
- 在javascript中如何获得textbox输入光标的位置
- 如何使用javascript控制html中的input文本框只能输入数字
- [原创]如何确保JavaScript的执行顺序 – 之jQuery.html深度分析
- 如何妥善处理WebBrowser对Javascript的错误问题,阻止JS弹出框,提高用户体验(原创)
- 用JavaScript控制自动唤起输入法键盘
- Gv在编辑的时候如何控制TextBox的大小
- javascript里如何获取GridView里某一行某一列的值和TextBox的值比较
- 在javascript中如何获得textbox输入光标的位置
- [原创]如何切换VC的默认源程序控制软件
- 如何用JavaScript做一个贪吃蛇游戏,贪吃蛇系列_03方向键控制方向
- asp.net从masterPage继承的页面,如何在客户端用javascript取control(比如textbox)的值
- javascript控制textbox字数的脚本 非常好用