|
|
|
к <div> надо привязываться
у меня есть такая реализация..www.sterling.ru/map там много писать надо типа function onOverItem() { ev = contentPage.event; if (ev.srcElement.tagName == "IMG") return; this.style.backgroundColor = this.brCont.itemHlBgCol; this.style.color = this.brCont.fontHlCol; contentPage.status = this.itemLink; this.brCont.activeId = this; if (this.brCont.bExp) closeSubmenus(this.brCont,this); if (this.bParent) { horOffset = (this.brCont.popupWidth - this.brCont.levelOffset); this.childX = this.brCont.style.pixelLeft + horOffset; this.childY = this.offsetTop + this.brCont.style.pixelTop + 6 + bord; this.child.moveTo(this.childX,this.childY); ensureVisib(this.child); this.brCont.bExp = true; this.brCont.visibleChild = this.child; chgVisib(this.child, true); } } но таких функций уже много понаписано.. просто идет привязка к текущему слою.. как у меня <TD bgColor=White id=tlm1 onmouseout="chgBg('tlm1',0);collapseMenu('mnu1')" onmouseover="chgBg('tlm1',3);expandMenu('mnu1',event,'tfol1')" > <TABLE border=0 cellPadding=0 cellSpacing=0 100%> <TBODY> <TR> <TD width=99% ><A class=CL0 href="test" id=tlm1a onmouseout="collapseMenuNS('mnu1')" onmouseover="expandMenuNS('mnu1',event,'tfol1')" > <DIV class=topFold id=tfol1> <img src=/i/empty.gif width=3 height=2 border=0> <img src=/i/bullet.GIF border=0> <img src=/i/empty.gif width=3 height=2 border=0><a class=map_link href="/services/r3/"> Услуги по внедрению системы R/3 </a> </DIV></A></TD> <td> по-моему из примера все ясно
|