Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I was wondering (Re Scrolling)

    I was wondering if there was a way to check and see if someone is needing to scroll on your page (if the page is longer then the information on the page) I am useing database entry (ASP) and on the page will show all the information in the field according to the first letter ext.. so say one field has 3 articles then of course in a page thats 1024*768 no scrolling needed but at say 800*600 scrolling would be needed now I want to add html at the bottem of the page that says click here to goto the top useing the #top ancor but if the person doesnt need to scoll I dont want the click here to goto the top to show up as if it was never part of the page????

    Any thoughts??

    Any Scripts???

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    something like this

    if (document.body.clientHeight < document.body.scrollHeight) {
    // page scrolls
    }

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That works Perfectly

    Thankyou


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •