Search Result

Collapse
3 results in 0.0032 seconds.
Keywords
Members
Tags
scrollto
  •  

  • How to center an scrolled-to anchor???

    Hello there,

    at the moment I am more than stucked while trying to scroll to an anchor in center of screen. I´ve tried using Ariel Flesler´s Local Scroll, which works perfectly for scrolling an anchor to the top left or any hash given position / offset etc.
    But now that I try to locate the anchor in the middle of the screen, depending on the screen size I am at the end of my knowledge though searching the web for days now......
    See more | Go to post

  • bugboy
    started a topic Using scrollTo() with a <div>

    Using scrollTo() with a <div>

    I need to be able to automatically scroll a div all the way to the right when new content is added to it via ajax. I've tried direction: rtl; which works in FF and IE but not Safari.. so i'm trying this:

    Code:
    <script type="text/javascript">
    function scrollDiv()
      {
      document.getElementById('id').scrollTo(1000,0)
      }
    </script>
    
    <div onmouseover="scrollDiv()"></div>
    ...
    See more | Go to post

  • scrollTo(x,y) problem; doesn't work with window.onload

    This is my first post, so be gentle.

    This:

    [CODE=javascript]<body onload="window. scrollTo(x,y)">[/CODE]

    Works fine.

    This:

    [CODE=javascript]window.onload = function() { window.scrollTo (x,y) }[/CODE]

    Doesn't work at all.

    Why?
    See more | Go to post
    Last edited by pbmods; Aug 28 '07, 06:14 PM. Reason: Changed [CODE] to [CODE=javascript].
Working...