Modifying scroller.js

Hummmm,

It seems when I insert the function:

function pauseit() {

if (timeout == 500) {

	timeout = 3000;

else

	timeout = 500;

}

and then at the bottom (after the window.onload)

window.onclick=pauseit;

Scrolling stops happening onload (in fact at any time). It appears that it is the function that is causing the problem, as if I comment out the window.onclick line, it still doesn’t work. The function looks good to me.

···

Andy

(andy@sailor.nu)

there is a missing } in the function (for the if).

nb: if you use chrome, click ctrl+shift+j to fire up the javascript console which will show you the error.

···

On Fri, Mar 13, 2015 at 11:50 AM, Andy Barrow andy@sailor.nu [sailwave] sailwave@yahoogroups.com wrote:

Hummmm,

It seems when I insert the function:

function pauseit() {

if (timeout == 500) {

  timeout = 3000;

else

  timeout = 500;

}

and then at the bottom (after the window.onload)

window.onclick=pauseit;

Scrolling stops happening onload (in fact at any time). It appears that it is the function that is causing the problem, as if I comment out the window.onclick line, it still doesn’t work. The function looks good to me.

Andy

(andy@sailor.nu)

Cheers,

Colin J

http://sailwave.com