Closed Thread Icon

Topic awaiting preservation: banging head against wall w/drop down menus (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9032" title="Pages that link to Topic awaiting preservation: banging head against wall w/drop down menus (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: banging head against wall w/drop down menus <span class="small">(Page 1 of 1)</span>\

 
ZenFrodo
Obsessive-Compulsive (I) Inmate

From: Columbus,OH
Insane since: Apr 2003

posted posted 02-22-2004 06:40

http://home.columbus.rr.com/rabbithorserun/test.html
http://home.columbus.rr.com/rabbithorserun/test2.html

I'm trying to work through a tutorial on drop-down menus. My variant is the "test.html"; I'm trying to figure out how to move the pop-up/drop-down menu from the right side of the list to the left. "test.html" uses a variant of the code given in the tutorial that allows for pop-up menus to the side of a list; "test2.html" uses a code variant that allows for drop-down menus from a bar-menu across the top of a page.

I've laid these two code variants out side by side and gone over them until my eyes cross,and they look exactly the same to me. I can't figure out how they get the dropdown/popup menu in two different positions using exactly the same code. It makes no sense, so I HAVE to be missing something here. Can someone point out the differences & where the pop-up/drop down coordinates are set? My tinkerings with the code have resulted in absolutely NO changes in the menu placement on "test.html". Please help a Javascript newbie!

Thanks!

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 02-22-2004 19:43

There are two differences in the two pieces of code 1) inthe function showMenu the value of menuTop is set to y in one and set to y+10 in the other. 2) There are major differences in alignment and positioning in the html of these two pages.

I suspect it is the menuTop=y+10 line that is making the difference.


-- not necessarily stoned... just beautiful.


[This message has been edited by hyperbole (edited 02-22-2004).]

ZenFrodo
Obsessive-Compulsive (I) Inmate

From: Columbus,OH
Insane since: Apr 2003

posted posted 02-22-2004 20:24

Thanks, hyperbole. I had tinkered with the showMenu function before my post, but nothing I did to that y value had any effect in either code. I woke up this morning thinking...hey, wait a minute, these are hidden DIV layers in tables, maybe it's where the table parts are positioned...and you just confirmed I might be right. I was so caught up in the javascript code that I forgot about the HTML half of things! I'll tinker a bit more and post the results. Thanks again!

(though if anyone else has ideas, please post!)

« BackwardsOnwards »

Show Forum Drop Down Menu