...

View Full Version : Image Time Switch script doesn't work



ssskaya
06-12-2004, 02:34 PM
Corrected mistake.

Please post to "scripts"

Thanks.



day=new Date()
x=day.getHours()

if(x>=0 && x<5) {
document.write('<img src="davemustaine1.jpg" alt="Dave Mustaine" />')
} else if(x>=5 && x<12) {
document.write('<img src="davemustaine2.jpg" alt="Dave Mustaine" />')
} else if(x>=12 && x<24) {
document.write('<img src="davemustaine3.jpg" alt="Dave Mustaine" />')
}

Roy Sinclair
06-14-2004, 05:54 PM
Is there a question here needing an answer?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum