Hi there, I am new hire and knowe that you can help me
Scrip name is: RADIO PROGRAM ON AIR
you can view this example but it's flash and I don't need flash script! http://www.rtl.it
http://www.dynamicdrive.com/dynamici...reqcontent.htm
Problem:
This is my script:
it's javascript, and i call this script withCode:function timeOfDayImage() { var now = new Date; var timeNow = now.getHours(); var img = null; var mess = ''; if (timeNow < 4 || timeNow > 20) { img = 'time1.gif'; mess = 'night'; } else if (timeNow < 6) { img = 'time2.gif'; mess = 'dawn'; } else if (timeNow < 8) { img = 'time3.gif'; mess = 'early morning'; } else if (timeNow < 11) { img = 'time4.gif'; mess = 'morning'; } else if (timeNow < 13) { img = 'time5.gif'; mess = 'noon'; } else if (timeNow < 16) { img = 'time6.gif'; mess = 'afternoon'; } else if (timeNow < 18) { img = 'time7.gif'; mess = 'late afternoon'; } else { img = 'time8.gif'; mess = 'sunset'; } document.write('<img src="graphics\/'+img+'" width="200" height="80" alt="'+mess+'" title="'+mess+'" />'); }
This is basic change image script depend of time, and I want to use it on radio station for display program that other call ON AIR. Basically whole program schema is in images so when is 3pm it will display one image. when is 5pm another and that it....Code:<script type="text/javascript"> timeOfDayImage(); </script>
But there is problem program schema isn't same for whole week, that means I have different images every day, not all but there is five that must be displayed on Sunday but on Monday it's different program....
So I need to add into this script, basically one more variable with days and I try to do that but script is crashing...
For all you this isn't very big problem so please help me if you can



Reply With Quote

Bookmarks