首頁  >  文章  >  web前端  >  用js控制css的不錯的方法_CSS/HTML

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

WBOY
WBOY原創
2016-05-16 12:12:042003瀏覽

[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