Hi, i need help with following script wich i use to to display different content depending on the time of day. But between 0 and 1 nothing is displayed. Whats wrong?
Code:function goto(){ var today=new Date(); var hour=today.getHours(); if((hour>0) && (hour<=11)){ } else if((hour>11) && (hour<=18)){ } else if((hour>18) && (hour<=0)){ } } goto();



Reply With Quote

Bookmarks