修改hta标签属性
hta吧
全部回复
仅看楼主
level 12
<hta:application
id="myApp"
/>
<script language="vbscript">
sub setBorder()
s=document.getElementById("myApp").getAttribute("border")
if s <> "none" then
document.getElementById("myApp").setAttribute "border","none"
alert document.getElementById("myApp").getAttribute("border")
else
document.getElementById("myApp").setAttribute "border","thick"
alert document.getElementById("myApp").getAttribute("border")
end if
end sub
</script>
<body onclick="setBorder()">
</body>
点击之后能看到属性变了。。可是为啥边框还在呀。。根本就没有变嘛。。求助。。
@美珍子 @愚人陈
2014年06月29日 05点06分 1
level 7
那个属性 仅在 运行时 有效
2014年06月29日 09点06分 2
level 7
启动时
2014年06月29日 09点06分 3
wscript 解析 hta 配置,创建的 窗口
2014年06月29日 09点06分
回复 愚人陈 :哦,O(∩_∩)O谢谢。。哎,看来只能在这个窗口上面再做一个出来,然后把现在这个关掉了。。
2014年06月29日 13点06分
1