класс selected
Добрый вечер.
Подскажите пожалуста как сделать чтоб в меню и подменю показываля путь за мышкой(т.е. свойство selected). код javascript var cssmenuids=["menu1"] var csssubmenuoffset=-1 function init() { IE = (document.all) NC = (document.layers) Opera = (document.getElementById) } function createcssmenu2() { for (var i=0; i<cssmenuids.length; i++){ var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul") for (var t=0; t<ultags.length; t++) { ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px" var spanref=document.createElement("span") spanref.className="arrowdiv" spanref.innerHTML=" " ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref) ultags[t].parentNode.onmouseover=function() { this.style.zIndex=100 this.getElementsByTagName("ul")[0].style.visibility="visible" this.getElementsByTagName("ul")[0].style.color=red /*this.getElementsByTagName("ul")[0].style.zIndex=0*/ } ultags[t].parentNode.onmouseout=function(){ this.style.zIndex=0 this.getElementsByTagName("ul")[0].style.visibility="hidden" /*this.getElementsByTagName("ul")[0].style.zIndex=100*/ } } } } if (window.addEventListener) window.addEventListener("load", createcssmenu2, false) else if (window.attachEvent) window.attachEvent("onload", createcssmenu2) |
Часовой пояс GMT +3, время: 16:46. |