Home › Forums › JavaScript › error Shop Open and Close Times script › Re: error Shop Open and Close Times script
September 28, 2010 at 5:36 pm
#78991
UFNITE
Member
Tuesday open 9:00am close 5:30pm – this doesn’t function properly any idea why?
if (t_hour == 9 && t_min >= 00 && t_day > 2 && t_day < = 2)
{
document.write('open');
}
else if (t_hour > 5 && t_hour < 17 && t_min >= 30 && t_day > 2 && t_day <=2)
{
document.write('open');
}