scrpit执行同页面内容切换

<div onclick="pageClick(this)" id="news" class="active"><img src="img/icon-1.png" />个人消息</div>
<iframe src="all_Student.jsp" height="713px" id="a1"
        name="ifd" onload="this.height=ifd.document.body.scrollHeight" 
        width="100%" scrolling="no" frameborder="1" ></iframe>
<script type="text/javascript">
    var news=document.getElementById('news');
    news.onclick=function(){
        a1.style.display="none";
    }
</script>

 

posted @ 2023-04-08 18:51  子过杨梅  阅读(11)  评论(0编辑  收藏  举报