www.webdeveloper.com
Results 1 to 4 of 4

Thread: [RESOLVED] auto scrolling

Hybrid View

  1. #1
    Join Date
    Jul 2013
    Posts
    21

    resolved [RESOLVED] auto scrolling

    ok this is the last repost i will do here
    i am making a text adventure game and i need the output text box to scroll to the bottom every time new content is added

    my text adventure so far
    http://www.red566.nf/GuiTest/testlayout.html
    only works with firefox and chrome
    the game ends after the first battle but more coming soon

    if no one can help could you pleas at least tell me where else i could get help with this

    thanks again

  2. #2
    Join Date
    Mar 2007
    Location
    U.K.
    Posts
    1,127
    Code:
    element.scrollTop = element.scrollHeight;

  3. #3
    Join Date
    Jul 2013
    Posts
    21
    could you give me an example of where i would put that pleas
    thanks

  4. #4
    Join Date
    Jul 2013
    Posts
    21
    ok cool so this works

    function AutoScroll(){
    TextOutput = document.getElementById("div id")
    TextOutput.scrollTop = TextOutput.scrollHeight
    }

    why is it always the seemingly small things that take for ever to find

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles