VBscript操作DOM

<html>
<body onLoad="setupEventHandler()" lang="vbscript">
<script  language="vbscript">

function setupEventHandler()
    
set fpchgBackground = getRef("chgBackground")
    
call mySpan.attachEvent("onclick", fpChgBackground)
end function

function chgBackground()
    document.bgColor 
= "lemonchiffon"
end function

</script>
<span ID="mySpan">span</span>
</body>
</html>
posted @ 2008-12-21 21:44  梦想天空(山边小溪)  阅读(2014)  评论(0编辑  收藏  举报