Korvin commented on a Page, Time Popup  -  Mar 02, 2010
var d = new Date();
var time = d.getHours();
if (time == 11)
    alert("Time to walk the dog!");
else if (time >= 22)
    alert("Yawn... It's late");
else if (time >= 19)
    alert("Time to get ready for bed");
else if (time >= 17)
    alert("Dinner Time");
else if (time >= 15)
    alert("TV Time!");
else if (time >= 12)
    alert("Lunch Time!");
else if (time >= 8)
    alert("Breakfast Time!");
else if (time >= 1)
    alert("Yawn... It's too early...");

best way I could shorten it =p

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.