Results 1 to 2 of 2

Thread: Pausing up-down Scroller Randomize Order

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing up-down Scroller Randomize Order

    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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You're in luck. Just find the following line in the script:

    Code:
    this.content=content //message array content
    and change that to:

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •