1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to scroll automaticly down

Discussion in 'Social Networking Sites' started by Gaetan16, Dec 22, 2010.

  1. Gaetan16

    Gaetan16 Newbie

    Joined:
    Nov 9, 2010
    Messages:
    26
    Likes Received:
    1
    How to scroll automaticly down on my page ? I want wen the people click on the link of a page, that they see the page they just clicked in the middle of the page...

    Does somebody can find of has the html code for me ? Thanks anyway!

    It's on Wordpress BTW
     
    Last edited: Dec 22, 2010
  2. friskel

    friskel Registered Member

    Joined:
    Jan 4, 2010
    Messages:
    58
    Likes Received:
    76
    I think you are looking for 'anchor links'..
     
  3. Gaetan16

    Gaetan16 Newbie

    Joined:
    Nov 9, 2010
    Messages:
    26
    Likes Received:
    1
    My page just needs to load on the middle of my page...
     
  4. vis3r

    vis3r Registered Member

    Joined:
    Jul 25, 2008
    Messages:
    62
    Likes Received:
    30
    edit the <body> tag of your site to look like this

    <body onload="window.location.href = '#scrolltohere';">

    then put

    <div id="scrolltohere"></div>

    in your website's html where you want to scroll to
     
    Last edited: Dec 22, 2010
  5. shehzada4

    shehzada4 Regular Member

    Joined:
    Sep 12, 2010
    Messages:
    228
    Likes Received:
    173



    Use the scroll() method to jump to a particular point on the page. The target position is specified in pixels from the top left corner of the page, horizontally and vertically.
    function jumpScroll() {
    window.scroll(0,150); // horizontal and vertical scroll targets
    }


    <a href="javascript:jumpScroll()">Jump to another place on the page</a>