I have a script on my site 1100kfnx.com that shows different images depending on the visitor's clock (I think). As seen below, it varis from hour to hour. But how can I make it so the images seen below are shown during their respective times Monday-Friday only, and either a separate set of images or just one generic one is shown on weekends? You can see example at the site.
<script>
//Time of day message script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use
var Digital=new Date()
var hours=Digital.getHours()
//Configure message below to your own.
if (hours>=6&&hours<9) //MORNING
document.write('<img src="/kfnx/images/onair/morning.gif" border=0>')
else if (hours>=9&&hours<10) //SAM
document.write('<img src="/kfnx/images/onair/drsam.gif" border=0>')
else if (hours>=10&&hours<11) //SYDNEY
document.write('<img src="/kfnx/images/onair/sydney.gif" border=0>')
else if (hours>=11&&hours<13) //MOHAN
document.write('<img src="/kfnx/images/onair/mohan.gif" border=0>')
else if (hours>=13&&hours<15) //CHARLES
document.write('<img src="/kfnx/images/onair/charles.gif" border=0>')
else if (hours>=15&&hours<18) //NEWCOMB
document.write('<img src="/kfnx/images/onair/newcomb.gif" border=0>')
else if (hours>=18&&hours<20) //DAYL
document.write('<img src="/kfnx/images/onair/dayl.gif" border=0>')
else if (hours>=20&&hours<22) //BOLLING
document.write('<img src="/kfnx/images/onair/bolling.gif" border=0>')
else if (hours>=22&&hours<1) //VORTEX
document.write('<img src="/kfnx/images/onair/vortex.gif" border=0>')
else if (hours>=1&&hours<5) //HOT
document.write('<img src="/kfnx/images/onair/hottalk.gif" border=0>')
</script>
Thanks


Reply With Quote
Bookmarks