Click to See Complete Forum and Search --> : Reset Menu Position While resize the window/Change screen resolution


jwalin
02-21-2003, 04:19 AM
Dear Friends,

I have menu layer in my asp page. Menu is a layer and prepared in javascript. It works fine. But when I change the resolution of my screen menu does not change the position on the screen. Sameway if I change the window size it doesn't move. So can you guide me about auto-positioning menu? How can I change the x,y co-ordinates of menu while changing screen resolution as well as resizing winow?

Cheers!!!
Jwalin

AH.C
02-21-2003, 12:45 PM
Without seeing the code in question, have you tried using % values for width and/or height properties? It works everytime for me.

HTH

jwalin
02-22-2003, 02:20 AM
Dear AH.C,

Putting % will not solve my problem. Actually I have a ready made javascript which creates the menu and initiates it. I have attached the code file here. All works fine but the problem is when I resize the window, menu does not move. I want to move menu according to the window size. Sameway if I change the resolution of the screen menu does not move.

Some notes about attached fie.
I have attached a zip file which consists two files. One is test.html and second is slidemenu.js file. Run html file and change the resolution of your window make it 1024*768 and then 800 * 600. you can try either of the way. Try to maximize and minimize the window. Strech the window and see menu will not move. I want menu to change the position according the resolution/size.
Cheers!!!
Jwalin

AH.C
02-26-2003, 12:16 AM
I fooled around with it some more, but I find the menu somewhat perlexing--the animation is indeed cool--but it seems once the folders are opened, it's nigh impossible to restore to original layout without refreshing, which begs the following thot;

I would think it would be more desireable for the listing to "remember" their previous state when refreshed or when jumped to a new page.

I'm looking at the resolution problem, but I wanted some feed back from you ref my response to your PM, in case my example helps solve your original problem. Let me know.

Tschuss