Vertical Menu / Posts /

Uncompressed JS

23
Hi,

Your doing some good work here!
Saves lots of time haha.
My question is, do you have a uncompressed version of the JS file?

greetings, Remon
Remon  11 years ago   viewed: 12282    

4 Answers

0
var alignWithMainMenu=false;

/* Vertical Menu - Developed by http://www.MenuCool.com/vertical/vertical-menu. Retaining this comment is required.*/
function initmenu(){
var e = document.getElementById("menuV2");
var i = e.offsetHeight;
var b = e.getElementsByTagName("ul");
var g = /msie|MSIE 6/.test(navigator.userAgent);
if(g) {
for(var h = e.getElementsByTagName("li"), a = 0, j = h.length; a < j; a++) {
h[a].onmouseover = function(){
this.className = "onhover";
};
h[a].onmouseout = function(){
this.className = "";
};
}
}
for(var a = 0; a < b.length; a++){
var c = b[a].parentNode;
c.getElementsByTagName("a")[0].className += " arrow";
b[a].style.left = c.offsetWidth+"px";
b[a].style.top = c.offsetTop+"px";

if(alignWithMainMenu){
var d = getParentOffsetRoot(c.parentNode, 0);
if(b[a].offsetTop+b[a].offsetHeight+d>i) {
var f;
if(b[a].offsetHeight>i) {
f = -d;
} else { 
f = i - b[a].offsetHeight - d;
b[a].style.top=f+"px";
}
}
}
c.onmouseover = function() {
if(g) {
this.className = "onhover";
}
var a = this.getElementsByTagName("ul")[0];
if(a) {
a.style.visibility = "visible";
a.style.display = "block";
}
};
c.onmouseout = function() {
if(g) {
this.className = "";
}
this.getElementsByTagName("ul")[0].style.visibility = "hidden";
this.getElementsByTagName("ul")[0].style.display = "none";
};
}
for(var a=b.length-1;a>-1;a--) {
b[a].style.display="none";
}
}

function getParentOffsetRoot(a, b) {
if(a.id == "menuV2") {
return b;
} else {
b += a.offsetTop;
return getParentOffsetRoot(a.parentNode.parentNode, b);
}
}

if(window.addEventListener) {
window.addEventListener("load", initmenu, false);
} else {
window.attachEvent&&window.attachEvent("onload", initmenu);
}
Remon   11 years ago
0

Great! It works well.

Alesha
  one year ago
0

I'm glad to hear that you find the assistance helpful! slice master

jeffreestar
  11 months ago
0

@block blast

Specific details on the uncompressed JS file for Planual are not available online. Planual itself is more of a documentation than a software component that typically has JS files.

Musupothers
  2 months ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: