/*区直单位*/ function setTab ( i ) { selectTab(i); } function selectTab ( i ) { switch(i){ case 1: document.getElementById("TabCon1").style.display="block"; document.getElementById("TabCon2").style.display="none"; document.getElementById("cAL1MTab1").style.display="block"; document.getElementById("cAL1MTab2").style.display="none"; document.getElementById("font1").style.color="#dd0007"; document.getElementById("font2").style.color="#3f3f3f"; document.getElementById("font1").style.backgroundImage="url(http://jyxy.sjzc.edu.cn/atm/1620357858820/20210507142202560.png)"; document.getElementById("font2").style.backgroundImage="url(http://jyxy.sjzc.edu.cn/atm/1620357858820/20210507142202579.png)"; document.getElementById("font1").style.backgroundRepeat = "no-repeat"; document.getElementById("font2").style.backgroundRepeat = "no-repeat"; break; case 2: document.getElementById("TabCon1").style.display="block"; document.getElementById("TabCon2").style.display="none"; document.getElementById("cAL1MTab1").style.display="none"; document.getElementById("cAL1MTab2").style.display="block"; document.getElementById("font1").style.color="#3f3f3f"; document.getElementById("font2").style.color="#dd0007"; document.getElementById("font1").style.backgroundImage="url(http://jyxy.sjzc.edu.cn/atm/1620357858820/20210507142202550.png)"; document.getElementById("font2").style.backgroundImage="url(http://jyxy.sjzc.edu.cn/atm/1620357858820/20210507142202588.png)"; document.getElementById("font1").style.backgroundRepeat = "no-repeat"; document.getElementById("font2").style.backgroundRepeat = "no-repeat"; break; } }