Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Two or more scrollers; with different stylesheets
dgb
Junior Member

Posts: 2
Registered: 1/27/2003
Member Is Offline
posted on 1/27/2003 at 09:24 PM Reply With Quote
Two or more scrollers; with different stylesheets


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
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 1/28/2003 at 09:52 AM Reply With Quote
re: Two or more scrollers; with different stylesheets


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.
View User's Profile View All Posts By User U2U Member
dgb
Junior Member

Posts: 2
Registered: 1/27/2003
Member Is Offline
posted on 1/29/2003 at 02:15 AM Reply With Quote

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?
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 1/29/2003 at 10:24 AM Reply With Quote
re: Two or more scrollers; with different stylesheets


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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Multiple vertical scrolling
Horizontal scrolling
Free Download Free Download
Product Documentation Documentation:
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
   

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004