So I have this code that shows different text depend on the time of the day.
</style>
<!-- HTML Code -->
<strong class="GeneratedText"><script type="text/javascript">
document.write("<p>");
var day = new Date();
var hr = day.getHours();
if (hr == 1) {
document.write(" Club Life" );
}
if (hr == 2) {
document.write(" Club Life ");
}
if (hr == 3) {
document.write(" Identity ");
}
if (hr == 4) {
document.write("A State Of Trance");
}
if (hr == 5) {
document.write("A State Of Trance");
}
if ((hr == 6) || (hr == 7) || (hr == 8) || (hr == 9) || (hr == 10) || (hr == 11) || (hr == 12) || (hr == 13) || (hr == 14)) {
document.write(" New Musikk" );
}
if (hr == 15) {
document.write(" Protocol" );
}
if ((hr == 16) || (hr == 17) || (hr == 18) || (hr == 19)) {
document.write(" New Musikk" );
}
if ((hr == 20) || (hr == 21)) {
document.write(" Rock Rush" );
}
if (hr == 22){
document.write(" Spinnin Sessions");
}
if (hr == 23) {
document.write(" Planet Perfecto" );
}
if (hr==0) {
document.write(" Planet Perfecto" );
}
document.write("</p>");
</script></strong>
Problem is that it show the same text every day. For example i want to that Spinnin Sessions only should be shown on Mondays, and Rock Rush only from Monday to Thursday. And same think with all of them. (different text in different day. How can I do that? Another problem is that text is shown based on viewers time, but not mine. How can this be fixed? Thank You