Current location: Hot Scripts Forums » General Web Coding » JavaScript » More problems with scrollable div


More problems with scrollable div

Reply
  #1 (permalink)  
Old 09-23-04, 06:17 PM
Goon Goon is offline
New Member
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
More problems with scrollable div

I haven't been very lucky getting any feedback on this scrollable div but I'll try again on another issue and if anyone would be kind enough to enlighten me on the matter I'd be very grateful.

I've downloaed the scrollable div files http://www.blueshoes.org/en/javascript/scrollablediv/ and they work fine up to 2 scrollers but when I try to add a third scrollable layer on the same page, it stops working.

I simply copied the code for the second scroller and changed it accordingly:


/*third slider*/
//scrollablediv 3
var scroller3 = new Bs_ScrollableDiv();
scroller3.init('divContainer_3', 'divContent_3');

var sliderObj3 = new Bs_Slider();
sliderObj3.attachOnChange(Bs_ScrollableDiv_sliderC hange);
sliderObj3.width = 11;
sliderObj3.height = 'auto';
sliderObj3.minVal = 0;
sliderObj3.maxVal = 100;
sliderObj3.valueInterval = 0.1;
sliderObj3.arrowAmount = 0.3;
sliderObj3.arrowMouseOver = true;
sliderObj3.valueDefault = 0;
sliderObj3.direction = 1;
sliderObj3.imgDir = '../images/';
sliderObj3.setBackgroundImage('scr_mid.gif','repea t');
sliderObj3.setSliderIcon('scr_knob.gif', 20, 10);
sliderObj3.setArrowIconLeft('scr_up.gif', 16, ;
sliderObj3.setArrowIconRight('scr_down.gif', 16, ;
sliderObj3.useInputField = 0;

scroller3.setSliderObject(sliderObj3, 'sliderDiv3');

}


Then proceeded in creating a 'divContainer_3', 'divContent_3' and sliderDiv3 divs on my page.

Then when I try to run it, no scroller appears and I get an object required error.

What am I missing?


Cheers
Reply With Quote
  #2 (permalink)  
Old 09-24-04, 04:39 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Could you link to the files so I could see which objects it requires and on which line?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Div Scrolling dwoody CSS 2 12-28-06 07:59 PM
Blueshoes scrollable div Goon JavaScript 0 09-13-04 01:40 PM
div backgrounds Iriel CSS 5 05-31-04 08:48 PM
trying to set up a apache,php,mysql test server, but having problems Primitive_screw PHP 3 02-13-04 04:19 PM
2 spacing/alignment problems Arowana HTML/XHTML/XML 0 01-07-04 11:58 AM


All times are GMT -5. The time now is 10:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.