I've got a site with a styleswitcher on it (from the Alistapart site) which works nicely - you click on one of two images to swap between "night time" and "day time" stylesheets.
Is it possible to also have a script which will automatically switch between stylesheets at a certain time of day?
I saw a message in this forum a while back with a script for swapping the stylesheets according to time which I grabbed and put into my page, but I'm not convinced that it will work along side the manual switcher - what do you reckon?
This is what it looks like:
If whoever wrote the code can own up then I can also stick in a credit - I didn't make a note when I took it last time.
Why is everybody using document.write()? It's evil I tells ya! Just Dynamicly change the href attribute of the link tag. (need to make it browser friendlt too...)
Thanks co2 - if I use the code I'll include a credit .
Not sure what to do at the moment as I think that I can't include both the manual styleswitcher and the automatic one - if this is the case then I have to choose between having the 'switches' on the page for people to change themselves or having it change automatically at night...
It should work. You just have to know which should have presidence.
(Where is CO2's code?)