multiple scrollbars

Hi

is it possible to use multiple custom scrollbars with this script.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you make a copy of this script for each of the elements you want to customize, yes. You will need to change the outermost variable (scroller) to another name for each of the copies (scroller1, scroller2, etc) and then you will also have to change the elements it applies to inside the code for each copy (content, container, scrollArea) since these are IDs, and there can only ever be one thing on a page with one ID. So your second scroll area would need to have different IDs, like content1, container1, scrollArea1, and then those same modified names would have to match exactly with the code in your duplicated functions.

Walter

On Sep 18, 2011, at 3:35 AM, david Verbruggen wrote:

Hi

is it possible to use multiple custom scrollbars with this script.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

should it be something like this than

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

All but the very last line. That should be onload = scroller1.init.And if you’re going to have more than one of these on a page, you’re going to have to call init on all of them. So you’ll probably need to wrap them in an anonymous function, like this:

onload = function(){
	scroller1.init();
	scroller2.init();
	scroller3.init();
};

Walter

On Sep 20, 2011, at 2:34 PM, david Verbruggen wrote:

Hi Walter,

should it be something like this than


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

I can’t see the problem, but it still doesn’t work.
Could you check it for me please?

button “Zorg” and button “Kinderparlement”

Thnx.
David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s what you do to debug this. Load the page, then in Safari, choose Develop/Show Error Console from the main menu. If you don’t see that option, then look in the Advanced tab of your Safari Preferences for “Show Develop menu” and enable that.

Now the error I’m seeing is this: inside the scroller2 method (beginning on line 87), you refer to the scroller variable, which doesn’t exist. Try changing that to scroller2 instead. And check the others for a similar lack of referent mistake. Safari is giving up on the first error, and not reporting any further of the same kind. You may discover that once you fix this one, another will pop up, like a geeky game of whack-a-mole.

Walter

On Sep 20, 2011, at 2:53 PM, david Verbruggen wrote:

Hi Walter,

I can’t see the problem, but it still doesn’t work.
Could you check it for me please?

Welkom bij Gemeenteschool De Knipoog

button “Zorg” and button “Kinderparlement”

Thnx.
David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options