<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>
<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>
作者:山边小溪
主站:yyyweb.com 记住啦:)
欢迎任何形式的转载,但请务必注明出处。