首页 >web前端 >css教程 >用js控制css的不错的方法_CSS/HTML

用js控制css的不错的方法_CSS/HTML

WBOY
WBOY原创
2016-05-16 12:12:042021浏览

[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行
]<script>// JScript source code <!-- function cnTable(){ //document.getElementById('cnTable').style.display = "block"; //document.getElementById('enTable').style.display = "none"; //document.getElementById('bigTable').style.display = "none"; //document.getElementById('otherTable').style.display = "none"; l1.className="active_web";l2.className="";l3.className="";l4.className=""; cnSp.className="blue_text";enSp.className="";bigSp.className="";otherSp.className=""; } function enTable(){ //document.getElementById('cnTable').style.display = "none"; //document.getElementById('enTable').style.display = "block"; //document.getElementById('bigTable').style.display = "none"; //document.getElementById('otherTable').style.display = "none"; l1.className="";l2.className="active_web";l3.className="";l4.className=""; cnSp.className="";enSp.className="blue_text";bigSp.className="";otherSp.className=""; } function bigTable(){ //document.getElementById('cnTable').style.display = "none"; //document.getElementById('enTable').style.display = "none"; //document.getElementById('bigTable').style.display = "block"; //document.getElementById('otherTable').style.display = "none"; l1.className="";l2.className="";l3.className="active_web";l4.className=""; cnSp.className="";enSp.className="";bigSp.className="blue_text";otherSp.className=""; } function otherTable(){ //document.getElementById('cnTable').style.display = "none"; //document.getElementById('enTable').style.display = "none"; //document.getElementById('bigTable').style.display = "none"; //document.getElementById('otherTable').style.display = "block"; l1.className="";l2.className="";l3.className="";l4.className="active_web"; cnSp.className="";enSp.className="";bigSp.className="";otherSp.className="blue_text"; } --> </script>
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn