PDA

View Full Version : Jquery News Scroller Issue


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:

Spudhead
05-14-2009, 05:39 PM
Dunno. I'd set it to 0 and see what happens.

Everlongdrummer
06-02-2009, 06:03 AM
Hehe thanks.

I have mucked around with different values and removed lines of code alltogether, however most changes stop the scrolling effect completely.

I guess there might need to be a little bit of rewriting rather than removing.

Totally stumped :(

Eldarrion
06-02-2009, 05:48 PM
What Spudhead suggested is the solution to your problem...


this.$counter = 0;


Starts scrolling immediately. What exactly are you stumped about?

exiang
08-28-2009, 04:01 PM
maybe you would like to try on this jquery news scroller

http://www.yeesiang.com/jquery.autoScroller

cowboysdude
10-30-2009, 03:55 AM
This is EXACTLY what I've been looking for.. You guys rock!!! I need to incorporate into something I'm doing... This is GREAT!!

Thank you! :thumbsup: