logo
Author: otherlight
Description: js example #1
Language: JavaScript
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.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;
        }
}
Recent pastes:
blessmaster (PHP)
antonivanov (SQL)
antonivanov (PHP)
brinza (PHP)
ilyhamas (Delphi)
Riateche (PHP)
otherlight (Java)
otherlight (JavaScript)
otherlight (CSS)
otherlight (CSS)
biophreak (JavaScript)
n4n (Perl)
prostoHz (Java)
ndubinkin (XML)
Riateche (Plain Text)
Slapotam (Perl)
ksurent (Perl)
John_Wein (Java)
John_Wein (HTML)
Riateche (HTML)
netsago.paste.β © 2009 Neunica