piku Posted August 14, 2013 Share Posted August 14, 2013 Hello everybody! Last week I started to create a template and slowly I am getting there ... In the "global.css" I defined a background image to the header area. (My logo is a partially transparent overlay sitting on top of the background ...) Now my question is whether there is a way in CSS or within the smarty arsenal to switch this background image according to the current date? I would like to have a set of background pictures that get switched every week (or according to a time table) like a calendar (a new image every week :-)) My first impulse was to write 52 CSS files (only containing the background-image definition) that get loaded dependent on the current date but I don't get the right conditional php statement together (should be added to the "header.tpl"-file, I guess) ... Any better ideas? thx for your attention, piku Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now