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: External Controls for Two Boxes
gjackson
Newbie

Posts: 1
Registered: 7/7/2004
Member Is Offline
posted on 7/7/2004 at 02:25 AM Reply With Quote
External Controls for Two Boxes


I use two Scroller Pro boxes on my site's home page. How can I use external controls for each box? The code I use follows:

<HEAD>
<script language="JavaScript">
<!--// external controls for left Tigra Scroller box
var b_moving = true, TScroll = [];
function toggle (o_btn){
if (b_moving){
TScroll[0].stop(2);
o_btn.value = ' Resume ';
}
else {
TScroll[0].move(2);
o_btn.value = ' Pause ';
}
b_moving = !b_moving;
return false;
}
function reverse (o_btn){
TScroll[0].step = -TScroll[0].step;
o_btn.value = (TScroll[0].step > 0 ? ' Back ' : ' Forward ');
return false;
}
// -->
</script>

<script language="JavaScript">
<!--// external controls for right Tigra Scroller box
var b_moving = true, TScroll = [];
function toggle (o_btn){
if (b_moving){
TScroll[1].stop(2);
o_btn.value = ' Resume ';
}
else {
TScroll[1].move(2);
o_btn.value = ' Pause ';
}
b_moving = !b_moving;
return false;
}
function reverse (o_btn){
TScroll[1].step = -TScroll[1].step;
o_btn.value = (TScroll[1].step > 0 ? ' Back ' : ' Forward ');
return false;
}
// -->
</script>
</HEAD>

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
new TScroll_init (Tscr_LOOK0, Tscr_BEHAVE0, Tscr_ITEMS0);
// -->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">
<!--
new TScroll_init (Tscr_LOOK1, Tscr_BEHAVE1, Tscr_ITEMS1);
// -->
</SCRIPT>
</BODY>
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 7/7/2004 at 07:33 AM Reply With Quote

You should diverse somehow actions of external controls:
1. Use different functions (toggle1, toggle2)
2. Use additional function argument toggle(o_button, n_scroller)
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Vertical automatic scrolling
Horizontal manual scrolling
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


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