Chrome Menu - difficulties with drop down menu position
1) Script Title: Chrome Menu - difficulties with drop down menu position
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rome/index.htm
3) Describe problem:
Hello, I have adjusted the chrome menu and I have tried it out,
but the position of the drop down menu is not underneath the main button (please see example http://www.karinleitner.com/indexmagic2.htm )
Can someone help me please? I have been trying to work it out for hours now....
Thanks!:confused::(
problem with ie6!! please check link below with ie6!
Hello again,
Firefox shows it no problem, but ie6 has a major problem with displaying it...here the link, but please try with ie6!
It must be my fault, cause on the website it says that it is compatible ie5+... but where is the mistake??
Thanks!:confused:
Postioning dropdowns in a Div Container
Anyone get this Chrome Drop Dowm Menu system to work within a div container. The website I am revamping is within a container to center it on the page, but the menu drop downs show up offset too far below and to the right of where they should. I am trying to change the code to reference the bottom and left values of the drop down button the <li> (I think asscmenuitem) rather than the top left of the web page itself, but my javascript and understanding of DOM is weak as I haven't done it in quite some time.
Here is the section of code in the Dropit function. if anyone could help I would be most appreciative as well as many others who want to use this menu system in a div container. I'll also include the link to all the code at the bottom.
thanks
Lyman
dropit:function(obj, e, dropmenuID){
if (this.dropmenuobj!=null) //hide previous menu
this.hidemenu() //hide menu
this.clearhidemenu()
this.dropmenuobj=document.getElementById(dropmenuID) //reference drop down menu
this.asscmenuitem=obj //reference associated menu item
this.showmenu(this.dropmenuobj, e)
this.dropmenuobj.x=this.getposOffset(obj, "left")
this.dropmenuobj.y=this.getposOffset(obj, "top")
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px"
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
this.positionshim() //call iframe shim function
},
http://www.dynamicdrive.com/dynamici...rome/index.htm