Web Analytics Made Easy -
StatCounter Scroll with js - CodingForum

Announcement

Collapse
No announcement yet.

Scroll with js

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scroll with js

    I have a screen that has a frameset consisting of 2 frames.

    The frame on the right has no scrolling on it. When I click on a link on the left frame it resizes the frameset leaving just a sliver of the right pane showing which is fine.

    However in this right pane in the sliver it shows the left side of the screen but what id like is to show the right side of the screen. So what id like to do is when I click this button to make the right pane a sliver, also scroll that page all the way to the right so that the righthand side of the screen is displayed. Is this possible and if so how do I set the scrolled position?

    TIA
    Dale
    Dale Ellis
    __________________

  • #2
    scrollTo()

    use window.scrollTo(x,y)
    or window.scrollBy(x,y)
    on the frame that you would like to scroll.

    Comment


    • #3
      Thanks Vortex,

      This did not work in this scenrio because the window has no scrolling on.

      I have managed to bodge it in the end, I set the left attibute to shift the table when minimised to show the section I needed to be displayed.

      Thanks anyway
      Dale
      Dale Ellis
      __________________

      Comment

      Working...
      X