By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

HTML query current position in page

P: 75
Hello everyone,

I am not a web developer and my knowledge in it is primitive,

I want to know if it is possible to move screen elements horizontally depending on the position of the user in the webpage?

appreciate your help
Jul 31 '12 #1

✓ answered by Dormilich

you need to look into JavaScript for that.

Share this Question
Share on Google+
14 Replies


P: 75
I guess yes I do need to elaborate on that I'm sorry,

so i want the contents of the page to move to the left or right depending on how far down the user is with scrolling on the page. I aim to give the illusion of diagonal scrolling. I hope its more clear this time

thank you
Aug 1 '12 #2

P: 75
i think it's possible to do that,
Aug 1 '12 #3

P: 75
Do you happen to know which command is used to query the position in page? and the command to move elements horizontally on page?

thanks dude
Aug 1 '12 #4

Dormilich
Expert Mod 5K+
P: 8,639
you need to look into JavaScript for that.
Aug 1 '12 #5

P: 75
thank you for your reply Dormilich

I wish to make a website that is very simple, and has just that feature, is it a complicated job? or its more knowhow?

thanks again
Aug 1 '12 #6

Dormilich
Expert Mod 5K+
P: 8,639
it is complicated because of the cross-browser issues.

the principle itself is plain: read the scroll height => adjust horizontal position.
Aug 1 '12 #7

P: 75
thanks mate, ill need to think about it and if i attempt to pursue this ill come with more specific questions

cheers
Aug 1 '12 #8

P: 75
Ok, what makes sense is for me to buy a template, has anyone seen this diagonal scrolling done before? or sold anywhere? I seriously looked everywhere, i feel its such a basic cool idea that people must have done it before

thanks again
Aug 2 '12 #9

Dormilich
Expert Mod 5K+
P: 8,639
i feel its such a basic cool idea that people must have done it before
actually, it’s not.
- it doesn’t work without JS, so once that is disabled, your GUI layout falls apart
- diagonal scrolling ins unpleasent for the eye to do continuously.
- text is not read diagonally
Aug 2 '12 #10

P: 75
cant there be a way to protect oneself from breaking down by reading if JS is disabled, then dont move the elements around?

whole block would move together, it wouldnt be line by line if you know what i mean, also the galleries of images and what not

and i dont get ur third point. lol
Aug 2 '12 #11

Dormilich
Expert Mod 5K+
P: 8,639
cant there be a way to protect oneself from breaking down by reading if JS is disabled, then dont move the elements around?
if JS is disabled, the elements won’t move. the question is, does that fit into your layout?

whole block would move together, it wouldnt be line by line if you know what i mean, also the galleries of images and what not
no, I don’t.

and i dont get ur third point.
ever heard of reading direction and reading behaviour? there are a great deal of psychological studies on that.
Aug 2 '12 #12

P: 75
I would be very interested in the studies on that, do you have a specific one in mind to guide me to? or a general direction of where to look?
Aug 2 '12 #13

Dormilich
Expert Mod 5K+
P: 8,639
I would just google for that.
Aug 2 '12 #14

P: 75
that was just enlightening! someone else might have thought that i meant a specific study that you have read
Aug 2 '12 #15

Post your reply

Sign in to post your reply or Sign up for a free account.