Results 1 to 2 of 2

Thread: A gerneral question

  1. #1
    Join Date
    Jun 2007
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default A gerneral question

    Script: Featured Content Slider
    URL: http://www.dynamicdrive.com/dynamici...tentslider.htm

    Is it possible to randomize which content it displays? EG if you had 10 DIV's in the external page, is it possible for the script to pick the content at random (whilst not repeating them until the cycle has completed?)

    Probably not easy at all, but I was just curious to know what you thought. Would be an interesting addition, don't you think?!

    Cheers
    Sol
    Last edited by ddadmin; 08-20-2007 at 06:43 AM.

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

    Default

    Hi:
    Please start a new thread for new inquires on this script. This just makes it easier for others who are having similar problems when stumbling upon it. I've moved your post to a new thread.

    To answer your question, in general, yes. Inside contentslider.js, find and add to the line below:

    Code:
    slidernodes[sliderid].sort(function() {return 0.5 - Math.random()})
    ContentSlider.buildpagination(sliderid)
    The code in red is new. Note that I'm using the default version of contentslider.js here. It should also work on your modified version, though I haven't tested it out yet.

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
  •