Toggle leagues"; myLink.style.marginLeft = "0.5em"; createEventListener(myLink); myLink.addEventListener('click', function() { for (ee in oDivs) if (typeof oDivs[ee].style !== "undefined") oDivs[ee].style.display = oDivs[ee].style.display == "" ? "none" : ""; this.parentNode.parentNode.parentNode.parentNode.scrollIntoView(true); }, false); myDiv.appendChild(myLink); oDivs[e].style.display = "none"; oDivs[e].parentNode.insertBefore(myDiv, oDivs[e]); } // ]]> |
|