Everlongdrummer
05-14-2009, 07:27 AM
Hi guys,
I found a great jquery vertical news scroller from http://jdsharp.us/jQuery/plugins/jdNewsScroll/ which I customised for a website at http://www.bizmagic.com.au/preview/acceler8/ - (bottom right)
There is some code in it that randomises when the scroller starts scrolling.
// Randomize when the scrolling will start, afterwards it will pause by delay
this.$counter = (Math.floor(Math.random() * 10) * 10);
However I wish for it to begin scrolling at page load, it seems kinda silly for its start time to be totally random.
The full JS is at http://www.bizmagic.com.au/preview/acceler8/scripts/jquery.jdNewsScroll.js
I can edit JS but not write it from scratch, I was hoping someone would have any idea to make it start instantly instead of randomly. Much appreciated! :thumbsup:
I found a great jquery vertical news scroller from http://jdsharp.us/jQuery/plugins/jdNewsScroll/ which I customised for a website at http://www.bizmagic.com.au/preview/acceler8/ - (bottom right)
There is some code in it that randomises when the scroller starts scrolling.
// Randomize when the scrolling will start, afterwards it will pause by delay
this.$counter = (Math.floor(Math.random() * 10) * 10);
However I wish for it to begin scrolling at page load, it seems kinda silly for its start time to be totally random.
The full JS is at http://www.bizmagic.com.au/preview/acceler8/scripts/jquery.jdNewsScroll.js
I can edit JS but not write it from scratch, I was hoping someone would have any idea to make it start instantly instead of randomly. Much appreciated! :thumbsup: