Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2011
    Location
    Nashville, TN
    Posts
    340
    Member #
    27244
    Liked
    26 times
    I use Jquery cycle plugin for my slideshow on home pages. I was wanting on a certain <li>s tag that it will change based on the date. Such as, when its a holiday i can set one of the slides to transition a design based on the date, etc. etc. Any ideas or links to tutorials?


  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    One way I can think of is to use PHP to swap out the slideshows.
    You'd make several slideshows all the same size, and save them all as individual .php files (defaultSlideshow.php, christmas.php, valentine.php, etc.)

    Then on your page you'd write some PHP. (I'll use pseudo code since I am doing a javascript course and now am totally mixed up with the javascript and the PHP - they're a lot alike but not really *tears hair*)

    <div id="slideshow"> //this is so you can style it with your CSS and define a size and placement for it
    <?php>


    if(time()== strtotime('2011-12-25')){

    //include christmas.php
    }

    if(time()== strtotime('2011-02-14')){

    //include valentine.php
    }


    else {
    //include defaultSlideshow.php
    }

    ?>
    </div>
    There are a lot of people on these forums who can undoubtedly do much better than that. I hope they'll help you out!
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    Senior Member
    Join Date
    Mar 2011
    Location
    Nashville, TN
    Posts
    340
    Member #
    27244
    Liked
    26 times
    thanks, im still trying out new things. Im using Jquery cycle right now and looking for a javascript backend change.

    i need to learn php anyways



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com