用JS和VBS实现全角半角相互转换
时间:2007-07-06 来源:flynetcn
用JS和VBS实现全角半角相互转换
<br>
<br>
js示例
<br>
<input type=text value="123abc123abc" id=jstxt>
<input type=button value="转换" onclick="javascript:jstxt.value=changejiaostr(jstxt.value,0)">
<br>
<br>
vbs示例
<br>
<input type=text value="123abc123abc" id=vbstxt>
<input type=button value="转换" onclick="vbscript:vbstxt.value=changejiaostr(vbstxt.value,0)">
<br>
<br>
js示例
<br>
<input type=text value="123abc123abc" id=jstxt>
<input type=button value="转换" onclick="javascript:jstxt.value=changejiaostr(jstxt.value,0)">
<br>
<br>
vbs示例
<br>
<input type=text value="123abc123abc" id=vbstxt>
<input type=button value="转换" onclick="vbscript:vbstxt.value=changejiaostr(vbstxt.value,0)">
相关阅读 更多 +