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
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>
点击之后能看到属性变了。。可是为啥边框还在呀。。根本就没有变嘛。。求助。。
@美珍子 @愚人陈