Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:38

Hide select object on menu under


Poster: aldemir
Dated: Friday September 6 2002 - 14:49:09 BST

Hi,
I need hidden of object in menu area. Adapted the function of coolmenu:

function hideselect(x,y,w,h){
var selx,sely,selw,selh,i
var sel=document.getElementsByTagName("SELECT")
for(i=0;i<sel.length;i++){
selx=0; sely=0; var selp;
if(sel[i].offsetParent){
selp=sel[i];
while(selp.offsetParent){
selp=selp.offsetParent;
selx+=selp.offsetLeft;
sely+=selp.offsetTop;
}
}
selx+=sel[i].offsetLeft;
sely+=sel[i].offsetTop;
selw=sel[i].offsetWidth;
selh=sel[i].offsetHeight;
if(selx+selw>x && selx<x+w && sely+selh>y && sely<y+h)
if(sel[i].style.visibility!="hidden") sel[i].style.visibility="hidden";
else sel[i].style.visibility="visible";
}
}

To apply in which?

Excuse my english !