HTML query current position in page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • askalottaqs
    New Member
    • Jun 2007
    • 75

    HTML query current position in page

    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
  • askalottaqs
    New Member
    • Jun 2007
    • 75

    #2
    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

    Comment

    • lyodmichael
      New Member
      • Jul 2012
      • 75

      #3
      i think it's possible to do that,

      Comment

      • askalottaqs
        New Member
        • Jun 2007
        • 75

        #4
        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

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          you need to look into JavaScript for that.

          Comment

          • askalottaqs
            New Member
            • Jun 2007
            • 75

            #6
            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

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              it is complicated because of the cross-browser issues.

              the principle itself is plain: read the scroll height => adjust horizontal position.

              Comment

              • askalottaqs
                New Member
                • Jun 2007
                • 75

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

                cheers

                Comment

                • askalottaqs
                  New Member
                  • Jun 2007
                  • 75

                  #9
                  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

                  Comment

                  • Dormilich
                    Recognized Expert Expert
                    • Aug 2008
                    • 8694

                    #10
                    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

                    Comment

                    • askalottaqs
                      New Member
                      • Jun 2007
                      • 75

                      #11
                      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

                      Comment

                      • Dormilich
                        Recognized Expert Expert
                        • Aug 2008
                        • 8694

                        #12
                        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.

                        Comment

                        • askalottaqs
                          New Member
                          • Jun 2007
                          • 75

                          #13
                          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?

                          Comment

                          • Dormilich
                            Recognized Expert Expert
                            • Aug 2008
                            • 8694

                            #14
                            I would just google for that.

                            Comment

                            • askalottaqs
                              New Member
                              • Jun 2007
                              • 75

                              #15
                              that was just enlightening! someone else might have thought that i meant a specific study that you have read

                              Comment

                              Working...