var tabItems = document.querySelectorAll(".tabItem"); var contentItems = document.querySelectorAll('.contentItem'); for (var i = 0; i < tabItems.length; i++) { tabItems[i].index = i; tabItems[i].onmouseover = function () { for (var j = 0; j < tabItems.length; j++) { tabItems[j].classList.remove('tabActive'); contentItems[j].style.display = "none"; } this.classList.add('tabActive'); contentItems[this.index].style.display = "block"; } }
× 人脉通

免费注册,即可查看全国免费招标项目

X
0