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 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2003
    Location
    UK
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page scrolling methods

    Hi,
    Does anyone know any good page auto scrolling methods, at the moment I have a button that scrolls my page when clicked, it's OK but I really want a method that scrolls on opening or by moving the mouse or something.

    I tried another script that used onload but it conflicted with another function I had on my page so only one would work not both.

    The both were called on onload.

    So anyone got anything nice?

  • #2
    New Coder
    Join Date
    Aug 2004
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    Call some function in body tag and then call your original functions inside that function.

    Code:
    <body onload="myfunction();">
    JS Code...
    Code:
    function myfunction(){
    somefunction1();
    somefunction2();
    }
    This way you can run as many codes as you want using onload event...

    Hope this helps you...

    Afru.

  • #3
    New Coder
    Join Date
    Oct 2003
    Location
    UK
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    Yay, I got it working, so simple duh! what was I thinking, I added this pageScroll to my existing onload event and it worked.
    Code:
    window.onload= function() {SetUpEvents,pageScroll(document.forms.myForm)
    Thanks mate

  • #4
    New Coder
    Join Date
    Oct 2003
    Location
    UK
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Whoops

    I spoke too soon my other function was disabled after applying that. Looks like I'm stuck with a button.


  •  

    Posting Permissions

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