Instead of document.write('body bgcolor=orange text=#FF')
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
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('body bgcolor=orange text=#FF')
Use $(body).css(background-color,blue)
or
$(body).addClass(noon)
I think the time part
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)
3 matches
Mail list logo