Log in

View Full Version : How to move submenu to the left



Inky1231
10-04-2011, 04:32 AM
Ok I am using the http://www.dynamicdrive.com/dynamicindex1/dropdowntabsdemo.htm example five mixed with a second level html drop down that opens to a third level. I want to move the second level menu to the left (you will see the padding to the left) I have tried changing the padding and the margins but it all gets messed up, maybe I am not doing it right. the page is located
http://www.dacc.edu/student-handbook/adm_prereg.php Any help you can give me I would greatly appreciate it.

ddadmin
10-04-2011, 05:53 PM
I want to move the second level menu to the left (you will see the padding to the left)

By the "second level menu", I assume you mean the drop down menu that appears when you mouse over the tab "Admissions and pre-registration"? To move that to the left, inside the .js file, try changing the line:


this.dropmenuobj.x=this.getposOffset(obj, "left")

to:


this.dropmenuobj.x=this.getposOffset(obj, "left")-this.dropmenuobj.offsetWidth+obj.offsetWidth

Inky1231
10-18-2011, 07:08 PM
I want to move the second level menu to the left (you will see the padding to the left)

By the "second level menu", I assume you mean the drop down menu that appears when you mouse over the tab "Admissions and pre-registration"? To move that to the left, inside the .js file, try changing the line:


this.dropmenuobj.x=this.getposOffset(obj, "left")

to:


this.dropmenuobj.x=this.getposOffset(obj, "left")-this.dropmenuobj.offsetWidth+obj.offsetWidth

Hi You were helpful with this I was wondering if you could help me with an IE issue. My third level menu is disconnected in IE but not firefox on http://www.dacc.edu/ar/admissions/ residency rules and regulations has a submenu and so does withdrawing from courses, but in IE the withdrawing from courses does not work.