Board Logo

Two or more scrollers; with different stylesheets
dgb - 1/27/2003 at 09:24 PM

I have two scrollers on the same/different page(s). Both with different background-colors set in their style sheets. But the second scroller (higher order) inherits the first scrollers style? Bizarre


nik - 1/28/2003 at 09:52 AM

You should assign to the same scroller the same unique index no matter whether there is only one scroller on the page or more than one. And you should name styles files accordingly, then scrollers won't mix up styles.


dgb - 1/29/2003 at 02:15 AM

Here try this. Take the Tigra Scoller PRO sample. Alter scroll0.css to black background and scroll1.css to say red. Run it and page shows black in first scroller and red in second. Then reverse the positions of the scrollers in the HTML and scroller 1 inherits scroller 0's background, ie. black. If you simply have the same scroller repeated then they have two different bcakgrounds. So something is positional, don't you think?


nik - 1/29/2003 at 10:24 AM

If you use Tigra Scoller PRO then scrollers are indexed automatically in the order they appear on the page. That's why they take corresponding styles. So if you want a single scroller on the page to take styles as a second one ( to be indexed as 1), please insert right before the scroller initialization block the following JavaScript line:
TScroll = [null]
just to replace zero-indexed scroller.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/