用变换显示div的方法实现标签页的效果。
javascript用:
- <script type="text/javascript">
-
function showXttx(){
-
document.getElementById("divDxls").style.display="none";
-
document.getElementById("divGxdz").style.display="none";
-
document.getElementById("divXttx").style.display="";
-
parent.showXttx();
-
-
}
-
function showDxls(){
-
document.getElementById("divDxls").style.display="";
-
document.getElementById("divGxdz").style.display="none";
-
document.getElementById("divXttx").style.display="none";
-
parent.showDxls();
-
}
-
function showGxdz(){
-
document.getElementById("divDxls").style.display="none";
-
document.getElementById("divGxdz").style.display="";
-
document.getElementById("divXttx").style.display="none";
-
parent.showUserSetting();
-
}
-
</script>
jsp中写入:
阅读(2577) | 评论(0) | 转发(0) |