请哪位高手帮我把下面的VBScript改成javascript,在下感激不尽!

ronghuan ronghuan 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<script language="VBScript">
function display1(num)
dim imagename
dim name
dim total
if(num<10) then
if document.all("subtree"+chr(48+num)).style.display="none" then
document.all("subtree"+chr(48+num)).style.display=""
document.all("image"+chr(48+num)).src="image/t_sub.gif"
document.all("img"+chr(48+num)).src="image/open.gif"
else
document.all("subtree"+chr(48+num)).style.display="none"
document.all("image"+chr(48+num)).src="image/t_plus.gif"
document.all("img"+chr(48+num)).src="image/close(1).gif"
end if
end if
if(num>9) then
if document.all("subtree"+chr(49)+chr(48+num-10)).style.display="none" then
document.all("subtree"+chr(49)+chr(48+num-10)).style.display=""
document.all("image"+chr(49)+chr(48+num-10)).src="image/t_sub.gif"
document.all("img"+chr(49)+chr(48+num-10)).src="image/open.gif"
else
document.all("subtree"+chr(49)+chr(48+num-10)).style.display="none"
document.all("image"+chr(49)+chr(48+num-10)).src="image/t_plus.gif"
document.all("img"+chr(49)+chr(48+num-10)).src="image/close(1).gif"
end if
end if
end function
</script>
...全文
评论 4
收藏 已收藏
分享
返回顶部
ronghuan
JavaScript 87,984 成员 224,681 内容