1) Script Title: Day & night script
2) Script URL (on DD): not available
3) Describe problem: i know how to read javascript, but only when i see it :-(
I'd really like a script that reads the computers time when the index is loaded and redirects to index1 @daytime and to index2 @night and can easily be changed depending on how early it gets dark
The only script i've ever made is this css stylesheetchanger based on resolution check:
I was thinking i need about the same thing with a clock and theCode:<script type="text/javascript" language=JavaScript> if (screen.width>1599) document.write('<link rel="stylesheet" type="text/css" href="../../../css/ie1600standaard.css">'); if (screen.width<1281) document.write('<link rel="stylesheet" type="text/css" href="../../../css/ie1280standaard.css">'); if (screen.width<1025) document.write('<link rel="stylesheet" type="text/css" href="../../../css/ie1024standaard.css">'); </SCRIPT>replaced bijCode:<link rel="stylesheet" type="text/css" href="../../../css/xxx.css">
Code:window.location = "http://www.starthemel.nl/index1"depending on the time.Code:window.location = "http://www.starthemel.nl/index2"
Can anyone please help me out?



Reply With Quote
Bookmarks