Author Topic: Controlling the speed of the Ajax scroller  (Read 1040 times)

silo23

  • Newbie
  • *
  • Posts: 4
    • View Profile
Controlling the speed of the Ajax scroller
« on: 21 June 2010, 14:31 »
Is there anyway of controlling the speed of the Ajax scroller, I gues it's in the javascript, bur I have no idea where to start lloking.
Cheers
Silo

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Controlling the speed of the Ajax scroller
« Reply #1 on: 22 June 2010, 02:16 »
There is a parameter in module configuration called "Delay for auto play". Just enter a number (in seconds) and that will control the speed.

If you mean the speed of actual transition that's something else.

silo23

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Controlling the speed of the Ajax scroller
« Reply #2 on: 22 June 2010, 08:24 »
Hi
Sorry, I did mean 'the speed of actual transition', is there a way to control this?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Controlling the speed of the Ajax scroller
« Reply #3 on: 22 June 2010, 14:13 »
Currently not as it's different for different effects. Which effect do you use?
Maybe I will add it to parameters in a later version.

silo23

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Controlling the speed of the Ajax scroller
« Reply #4 on: 23 June 2010, 10:46 »
I'm using the vertical scroll, there must be something in the code that controls the speed? I don't mind altering the code if you could give me an idea of where to look, I'm sure others would find this useful.

Cheers
Silo

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Controlling the speed of the Ajax scroller
« Reply #5 on: 23 June 2010, 22:27 »
Vertical scroll all right, but which effect (Linear, Expo, Bounce or Back)? Each transition has different transition time.

I visited your site and I see that you use linear transition. Open the file modules/mod_ajaxscroller/mod_ajaxscroller/script.js

Find the code: "linear|500|". Change this to "linear|1000|" or any other value in milliseconds you would like the transition to take.
« Last Edit: 23 June 2010, 22:29 by Saka »

silo23

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Controlling the speed of the Ajax scroller
« Reply #6 on: 24 June 2010, 09:17 »
Brilliant, thanks very much, took about 5 seconds to alter the code, and looks great.
Cheers
Silo