Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can it be set up for layout and CSS to change automatically?

    I'm working on a new layout for a website that will utilize CSS and HTML.
    My layout actually consists of four individual layouts that will represent Spring, Summer, Fall, and Winter. I'm trying to figure out however, if I will have to change the layout manually or if there is some way to set it up so that it will automatically change on a preset date.

    For example: The date is March 19th, the layout displays the "Winter" layout for visitors. A visitor returns to the site the next day only this time the site displays the "Spring" layout because it's set to change on the 20th of March.

  • #2
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    A server side script that determines (by date) which CSS file to serve would be the way to do this.

    This page serves a different background image by time-of-day for example. Use a similar approach to change the css file by date would be easy enough to arrange.
    Last edited by jlhaslip; 04-01-2009 at 09:19 AM.

  • #3
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay, well... that answers that it can be done...

    I have absolutely no experience with server side scripts what-so-ever sadly.

    Is there perhaps another way to achieve this? Or is using some kind of SSS the only way to achieve this effect?
    Last edited by Chelle the Cat; 04-01-2009 at 08:15 PM.

  • #4
    New Coder
    Join Date
    Mar 2009
    Location
    Milton Keynes, England
    Posts
    54
    Thanks
    4
    Thanked 4 Times in 4 Posts
    http://www.katgal.com/2007/03/time-s...er-change.html

    This is a javascript solution, but again it is using different time periods of the day (however it uses the user's timezone). Would need tweaking to work with the seasons.

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    A server side solution would be best. You can ask in the PHP forum for a bit of help if you get stuck. Give it a try.

  • #6
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, but due to the nature of the project and time line for it I really don't have time to learn a whole new coding language just to get this done (and I know absolutely nothing about working in PhP at this point in time). If it comes down to that being the only reliable way, I will have to hire out for the work to be done unfortunately.


  •  

    Posting Permissions

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