Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 3.57 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-24-2002, 01:36 PM   PM User | #1
Rikimaru
New to the CF scene

 
Join Date: Jun 2002
Location: Farmington Hills, MI
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rikimaru is an unknown quantity at this point
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.
Rikimaru is offline   Reply With Quote
Old 06-24-2002, 06:26 PM   PM User | #2
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
What do you mean, access the scrollbars?

Like, have scrollTo/scrollBy methods?
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-25-2002, 02:26 PM   PM User | #3
Rikimaru
New to the CF scene

 
Join Date: Jun 2002
Location: Farmington Hills, MI
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rikimaru is an unknown quantity at this point
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.
Rikimaru is offline   Reply With Quote
Old 06-25-2002, 05:17 PM   PM User | #4
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
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.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:49 PM.


Advertisement
Log in to turn off these ads.