[code] Chrono Skin (CSS) changer

Post new topic   Reply to topic

View previous topic View next topic Go down

[code] Chrono Skin (CSS) changer

Post  Bad Wolf on Sun May 27, 2007 1:17 am

To set skinz to change with users PC clock


<script language="javascript">
/* script by ????*/
now = new Date();
itime = now.getHours();
document.write(itime);
function TSkinChange() {
if (itime >= 12) {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://your 1st url.com/here">');
}
if (itime >= 24) {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://your 2nd url.com/here">');
}}
TSkinChange();
</script>

_________________

Bad Wolf
Developer
Developer

Female
Age: 31
Number of posts: 1344
Location: The Evil Empire

Reputation: 6
Usage Points: 122
Registration date: 2006-12-24

Cprofile
Title: The Digital Alchemist
Luck:
555/555  (555/555)
Karma:
670/777  (670/777)

View user profile http://www.darkfx.com

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum