vbscript转javascript
有个vbscript函数转成javascript,请javascript高手帮下忙,谢谢
sub chgbm
dim i,e,j,ba
for i= 0 to frmxx.dxry.options.length-1
frmxx.dxry.options.remove 0
next
for i=1 to ubound(ary,2)
if frmxx.bm.value=ary(2,i) or frmxx.bm.value="X" then
ba=0
for j=0 to frmxx.yxry.length-1
if ary(0,i)=frmxx.yxry.item(j).value then
ba=1
exit for
end if
next
if ba=0 then
Set e = Document.createElement("OPTION")
e.value=ary(0,i)
e.text=ary(1,i)
frmxx.dxry.options.add e
end if
end if
next
end sub
sub chgbm
dim i,e,j,ba
for i= 0 to frmxx.dxry.options.length-1
frmxx.dxry.options.remove 0
next
for i=1 to ubound(ary,2)
if frmxx.bm.value=ary(2,i) or frmxx.bm.value="X" then
ba=0
for j=0 to frmxx.yxry.length-1
if ary(0,i)=frmxx.yxry.item(j).value then
ba=1
exit for
end if
next
if ba=0 then
Set e = Document.createElement("OPTION")
e.value=ary(0,i)
e.text=ary(1,i)
frmxx.dxry.options.add e
end if
end if
next
end sub
...全文
相关推荐
htm转js asp php 网页格式工具
htm转js asp php 网页格式 超好用 欢迎下载
JSP,asp,php,js转html工具
JSP,js转html工具
汉字转成拼音-用HTML实现
近日,买了一台新电脑,终于把CM1.6的古懂机淘汰了,也翻出了以前写的一些好东东,整理整理,拿出来给大家分享。 这是当时写的一个汉字转成拼音的小代码,用HTML网页+Vbscript实现的,很简单,主要是方便使用。
由汉字转化为拼音的实例
一个由汉字得到其拼音的效果 不过是asp版本的 贡献出来
HTML转所有代码工具 (转ASP。PHP。JS的工具)
HTML转所有代码工具 (转ASP。PHP。JS的工具)来至网上!


