Grow your CSS skills. Land your dream job.

Rotate Order of List Items

  • # February 28, 2013 at 11:01 pm

    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

    # March 1, 2013 at 7:23 am

    Here is an example: http://codepen.io/anon/pen/Gmrlw

    Note: jQuery has been loaded in the background

    # March 1, 2013 at 9:24 pm

    @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

    # March 2, 2013 at 9:26 pm

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".