PDA

View Full Version : Dynamic Ajax Content - customize scrollbar?



borninMN
02-14-2012, 09:42 PM
1) Dynamic Ajax Content

2) http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) I have changed the settings of the div that contains my content to:
<div id="contentarea" style="height: 575px; overflow: auto"></div>

Is there a way to change the look of my scrollbar when it appears?

jscheuer1
02-15-2012, 04:57 AM
IE and Opera support custom css scrollbar styles. I believe those only affect the colors used though. Other than that, there are a number of custom scrollbar scripts around, you could use one of those. Make sure to get one that can react well to its contents changing, or at least one you can reinitialize as to dimensions whenever you load new content into it.

Google:


Custom Scrollbar

Dynamic Drive has one:

http://www.dynamicdrive.com/dynamicindex17/jquerycustomscrollbar/index.htm

I'm generally unfamiliar with it so I'm not recommending it for this purpose.

And one of our members has:

http://www.vicsjavascripts.org.uk/EaseScrollBar/EaseScrollBar.htm

Same thing there though. I don't know enough about it to recommend it.