Signin  Pricing  Examples  Support

Libraries > menu.js

menu.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://i-a.net/engine/classes/js/menu.js

Function Explorer














Libraries on i-a.net


bbcodes.js

dle_ajax.js

js_edit.js

menu.js

caption.js

iCarousel.js

lytebox.js

mootools.js

mootoolsv11.js

s5_cookies.js

s5_effects.js

s5_ls_fade.js

s5_scroll_down_no_moo_menu.js

s5_textmenu.js

tooltips.js



Explore More


jquery.pseudo.js

cookie.js

hero.js

dropdown.js

menu.js
				
var menuwidth="165px",disappeardelay=1E3,hidemenu_onclick="yes",ie4=document.all,ns6=document.getElementById&&!document.all;if(ie4||ns6)document.write('<div id="dropmenudiv" style="visibility:hidden;position:absolute;z-index:100;width:'+menuwidth+';" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>');function getposOffset(a,b){var c=b=="left"?a.offsetLeft:a.offsetTop;for(a=a.offsetParent;a!=null;){c=b=="left"?c+a.offsetLeft:c+a.offsetTop;a=a.offsetParent}return c}
function showhide(a,b,c,d,e){if(ie4||ns6)dropmenuobj.style.left=dropmenuobj.style.top=-500;if(e!=""){dropmenuobj.widthobj=dropmenuobj.style;dropmenuobj.widthobj.width=e}if(b.type=="click"&&a.visibility==d||b.type=="mouseover")a.visibility=c;else if(b.type=="click")a.visibility=d}function iecompattest(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body}
function clearbrowseredge(a,b){var c=0;if(b=="rightedge"){b=ie4&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(b-dropmenuobj.x<dropmenuobj.contentmeasure)c=dropmenuobj.contentmeasure-a.offsetWidth}else{var d=ie4&&!window.opera?iecompattest().scrollTop:window.pageYOffset;b=ie4&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(b-dropmenuobj.y<dropmenuobj.contentmeasure){c=dropmenuobj.contentmeasure+a.offsetHeight;if(dropmenuobj.y-d<dropmenuobj.contentmeasure)c=dropmenuobj.y+a.offsetHeight-d}}return c}function populatemenu(a){if(ie4||ns6)dropmenuobj.innerHTML=a.join("")}
function dropdownmenu(a,b,c,d){if(window.event)event.cancelBubble=true;else b.stopPropagation&&b.stopPropagation();clearhidemenu();dropmenuobj=document.getElementById?document.getElementById("dropmenudiv"):dropmenudiv;populatemenu(c);if(ie4||ns6){showhide(dropmenuobj.style,b,"visible","hidden",d);dropmenuobj.x=getposOffset(a,"left");dropmenuobj.y=getposOffset(a,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(a,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(a,"bottomedge")+a.offsetHeight+"px"}return clickreturnvalue()}function clickreturnvalue(){return ie4||ns6?false:true}function contains_ns6(a,b){for(;b.parentNode;)if((b=b.parentNode)==a)return true;return false}function dynamichide(a){if(ie4&&!dropmenuobj.contains(a.toElement))delayhidemenu();else ns6&&a.currentTarget!=a.relatedTarget&&!contains_ns6(a.currentTarget,a.relatedTarget)&&delayhidemenu()}function hidemenu(){if(typeof dropmenuobj!="undefined")if(ie4||ns6)dropmenuobj.style.visibility="hidden"}
function delayhidemenu(){if(ie4||ns6)delayhide=setTimeout("hidemenu()",disappeardelay)}function clearhidemenu(){typeof delayhide!="undefined"&&clearTimeout(delayhide)}if(hidemenu_onclick=="yes")document.onclick=hidemenu;


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z