Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Rotate Order of List Items

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43054
    bcintegrity1
    Participant

    I want this list to be rotated, if possible, daily. Is there any script to rotate the last list item to the top of the list each day to give the listings equal opportunity to appear at the top of the list?

    http://integritycontractingofva.com/Pest-Control-Richmond%2C-VA.php#pestprofessional

    #126656
    bcintegrity1
    Participant

    @jamy_za Thank you for your time! I like that the list can be altered.

    Is there a way (jquery plugin) to place the last item before the first item, or the place the first item to last in the list, so that each item would drop (or gain) a position…something that would rotate automatically, by # of hours or days (without “resetting” at each page load). My goal is to have the list rotate, to give each listing the opportunity to be at the top, without having to manually change the list order every day.
    i.e.
    day/hour 1=item order#1,2,3,4

    day/hour2=item order#4,1,2,3

    day/hour3=item order#3,4,1,2

    day/hour4=item order#2,3,4,1

    day/hour5=repeat

    #126721
    bcintegrity1
    Participant

    Any other ideas? I’m script illiterate, but can insert plugins:)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.