[jQuery] Re: Change background based of time of day using jquery

2007-09-26 Thread bsuttis
Thanks, I used the following: // change background depending on user's time datetoday = new Date(); timenow = datetoday.getTime(); datetoday.setTime(timenow); thehour = datetoday.getHours(); if (thehour >= 18) $('body').addClass('evening'); else if (thehour >= 15) $('body').

[jQuery] Re: Change background based of time of day using jquery

2007-09-26 Thread Danjojo
Fun idea.. I might try that for the world of warcraft guild site I am building. On Sep 26, 10:51 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Instead of document.write('') > Use $("body").css("background-color","blue") > or > $("body").addClass("noon") > > I think the time part could potentially

[jQuery] Re: Change background based of time of day using jquery

2007-09-26 Thread Glen Lipka
Instead of document.write('') Use $("body").css("background-color","blue") or $("body").addClass("noon") I think the time part could potentially be a switch, but that's just readability. Glen On 9/25/07, bsuttis <[EMAIL PROTECTED]> wrote: > > > I'm curious if I could use jquery to change my bod