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 to the CF scene
    Join Date
    Jun 2002
    Location
    Farmington Hills, MI
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Accessing scrollbars of overflown <div>?

    Howdy all,

    I've checked everywhere for a way to access the scrollbars that appear when you set a div overflow to scroll. Has anyone been able to do this?

    Here's what I'm trying to do (I'm not requesting a script, just trying to give an idea of my intentions):

    I've got a layer that is 1400px wide, way larger than the standard resolution we use at work. Because it's so large, and there's no way around that, someone suggested I add something similar to Adobe's navigator palette. I'm sure it can be done...I just can't find a way to access the scrollbars from the 'master' layer.

    Any hey, if anybody else thinks of a better jumping off point, let me know. I've been racking my brain all weekend over this.

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    What do you mean, access the scrollbars?

    Like, have scrollTo/scrollBy methods?

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Farmington Hills, MI
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, I was hoping to access them like the document scroll bars, but I can't find any methods or properties to work with regarding them. Instead, and probably more efficient, I made my own scroll arrows, and just dynamically scroll the layer based on my needs. Plus, it looks nicer than using those ugly scrollbars.

    Still, it would be nice to know if it was possible.

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Umm, if you have an element with overflow: scroll, the only only thing that changes from the JS side to my knowledge is that element.onscroll starts firing when that element is scrolled.


  •  

    Posting Permissions

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