[quote]this code will alert the viewer [b]good morning[/b] if the time on your computer is 12:00 below, [b]good afternoon[/b] if 12:00 am above and 6:00 pm below and [b]good night[/b] if 6:00 pm above...hope you like this one...
put this code on your compile js...
[spoiler]<!-- Begin
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour >= 18) display = "[b]Good Evening[/b]";
else if (thehour >=12) display = "[b]Good Afternoon[/b]";
else display = "[b]Good Morning[/b]";
alert(display);
// End -->[/spoiler]
just edit the [b]bold[/b] part with your messages...
[url=http://profiles.friendster.com/ramonhelp]PREVIEW[/url][/quote]
Last edited by R-A-M-O-N-help (2009-01-31 06:01:03)