PDA

View Full Version : Pausing up-down Scroller Randomize Order



waynobwneo
01-10-2008, 07:57 PM
1) Script Title: Pausing up-down Scroller

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

3) Describe problem:
I need help on this script ULTRA BADLY!, I need to be able to randomize the output of this array... Right now it just reads a javascript file which is set up as an array. How do i randomize this back on the page so that when ever the page is loaded, the output will be different each time. THANK SO MUCH. Please HELP! THanks.

ddadmin
01-11-2008, 05:54 AM
You're in luck. Just find the following line in the script:


this.content=content //message array content

and change that to:


this.content=content.sort(function() {return 0.5 - Math.random()}) //message array content