Scrooling of page

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

  • : 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 --

    secret_doom@hotmail.com
    www.batch.hpg.com.br
Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion