I get the feeling that this place isn’t really for asking entire codes from, but if somebody has the freetime I’d be very thankful if they would help.
I’ve been working a lot with html, css, and the stuff in between for nearly a year now, and as all I have delt with is the personal website I use them for, I never put much investment into javascript, so anything beyond the basics is like a foreign language to me.
What I’m trying to do in my latest design is, depending on the time of the day, to load different css files so that I can have the colors dark and alluring at night, bright in the morning, so on and so forth. I have seen cheap codes change text according to the time of the day using javascript, but changing the css file seems like something entirely different.
What I am hoping for is some javascript code that will allow the css file to change between something generic such as sheet1.css, sheet2.css, and sheet3.css, such that
Sheet1.css loads from 4am-11:59pm
Sheet2.css loads from 12pm-7:59pm
Sheet3.css loads from 8pm-3:59m
I figured the one minute before hand so as not to cause problems, unless the whole less than stuff does the job, than the times could just be rounded.
[only as a side note, it would be nice to know how, when a link is clicked, to load that file temporarily (I don’t want to mess with cookies), so if I clicked on my own specified link that said ‘morning’ it would load sheet1.css for that page]
so if somebody has some free time, or knows the code right from mind, I’d really appreciate it if you could show it to me ?