/    Sign up×
Community /Pin to ProfileBookmark

Reset Menu Position While resize the window/Change screen resolution

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

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@AH_CFeb 21.2003 — Without seeing the code in question, have you tried using % values for width and/or height properties? It works everytime for me.

HTH
Copy linkTweet thisAlerts:
@jwalinauthorFeb 22.2003 — 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

[upl-file uuid=2d30bcb4-3e0d-4ebc-8021-be6ed6b29467 size=8kB]error.zip[/upl-file]
Copy linkTweet thisAlerts:
@AH_CFeb 26.2003 — 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
×

Success!

Help @jwalin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...