|
Post by Nucular on Apr 21, 2005 17:10:03 GMT
<script type="text/javascript"> //Skin Code V1.0 //Created by Travis a.k.a Nuclear //Do not post this code anywhere else without my permission
//Edit or Add CSS Information Here var x='<style type="text/css">.windowbg{background-color: Red;}.windowbg2{background-color: Green;}.titlebg{background-color: Navy}</style>'; var y='<style type="text/css">.windowbg{background-color: 000000;}</style>';
//Do not Edit below var d = new Date() var hour = d.getHours() var year = d.getMinutes()
if (year < 10 && hour > 12) { document.write(x) } else { if (year >= 10 && hour > 12) { document.write(x) } else { if (year < 10 && hour < 12) { document.write(y) } else { if (year >= 10 && hour < 12) { document.write(y) } else { if (year < 10 && hour == 12) { document.write(x) } else { if (year >= 10 && hour == 12) { document.write(x) }}}}}} </script>
This code will change your page colors depending on what time it is. Right now it is set to changed in the morning, at noon, and at night. Where the variables are is where you enter in your css information. If you would like to have it for each hour of the day, please request the code here, and I will make it for you.
For now enjoy the code. Also note that this code does not work by clock on proboards, but instead gets the time off of your computer.
|
|