Board Logo

vertical scroll direction quirky
hyperhappy - 9/14/2005 at 02:01 AM

hey guys,

I just installed the scroller but it seems that i can't get the scrolling direction to work. The up arrow sometimes makes the content go down and the down arrow sometimes makes the content go up. Sometimes it works and sometimes it doesn't. Not sure what i have done wrong. I have tried using "-" numbers for the speed also. I AM CONFUSED, please help. The scroll is located here:

The only code i changed was on the scroll.tpl1.js page:

var LOOK = {
// scroller box size: [width, height]
'size' : [300, 225],
// for on-demand mode: path to image for scrolling items backward
// if relative than to Tscroll_path_to_files
'up' : 'aup.gif',
// for on-demand mode: path to image for scrolling items forward
// if relative than to Tscroll_path_to_files
'dn' : 'adn.gif'
// if scrolling mode is auto (true / false);
'auto' : false,
// if scrolling direction is vertical (true / false, false means horisontal)
'vertical' : true,
// scrolling speed, pixels per 40 miliseconds;
// for auto mode use negative value to reverse scrolling direction
'speed' : -8
// a data to build scroll window content
{ // file to get content for item from; if is set 'content' property doesn't matter
// only body of HTML document is taken to become scroller item content
// note: external files require time for loading
// it is RECOMMENDED to use content property to speed loading up
// please, DON'T forget to set ALL IMAGE SIZES
// in either external file or in 'content' string for scroller script
// to be able to estimate item sizes
'file': '../s0_data/cont1.html',
'content': '',
'pause_b': 2,
'pause_a': 1

Not sure what I am doing wrong. Please help.


rock - 9/14/2005 at 07:23 AM

You have syntax error in the code, a correct syntax is:
'pause_a': 1

hyperhappy - 9/14/2005 at 09:00 PM

Hey Rock,

Thanks for the swift reply.

I changed the code, still seems a bit finnicky. Sometimes it works, sometimes it doesn't. The new link is:

I've attached the code to just so you can see.

Thanks for your help, I really appreciate it.

Back to forum: