文件名称:创建浮签页
文件大小:3KB
文件格式:TXT
更新时间:2015-03-22 09:03:20
浮签
内容分块,鼠标浮动切换 [removed] function changediv(id) { var divarray = document.getElementsByTagName("div"); for (var i = 0; i < divarray.length; i++) { if (divarray[i].id != "")//不让没有标识的div进来 { var divid = divarray[i].id; //当和传入的div 是一个系列时 if (divid.substr(0, divid.indexOf('_')) == id.substr(0, id.indexOf('_'))) { if (divid == id) { divarray[i].style.display = ""; divarray[i].style.overflow = "hidden"; document.all("td" + divid.substr(divid.indexOf('_'), divid.length)).style.backgroundColor = "#FEBA4F"; } else { divarray[i].style.display = "none"; divarray[i].style.overflow = "hidden"; document.all("td" + divid.substr(divid.indexOf('_'), divid.length)).style.backgroundColor = "#FEFACD"; } } } } } [removed]