首页 > 请问这个脚本为什么对IE9没有效果?

请问这个脚本为什么对IE9没有效果?

<script>
function MM_over(mmObj) {

var mSubObj = mmObj.getElementsByTagName("div")[0];
mSubObj.style.display = "none";

}
function MM_out(mmObj) {

var mSubObj = mmObj.getElementsByTagName("div")[0];
mSubObj.style.display = "block";

}
</script>


要么就是没有获取到元素,要么就是调用错误


因为你函数没执行

【热门文章】
【热门文章】