Scrooling of page - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Scrooling of page

ljubaljuba Posts: 106Member
How I can calculate relative scroll of page after loading? For example I load page, move scroll bar down 40px, move up 15px and in one variable I have to have number 25?

Comments

  • Secret_DoomSecret_Doom Posts: 116Member
    : How I can calculate relative scroll of page after loading? For example I load page, move scroll bar down 40px, move up 15px and in one variable I have to have number 25?
    :

    Just use the following properties:

    body.scrollTop
    body.scrollLeft

    e.g.:
    var1 = body.scrollTop

    Is that what you wanted to know ?

    -- Secret_Doom - Leonardo Pignataro --

    [email protected]
    www.batch.hpg.com.br
Sign In or Register to comment.