Well i need a script where the page is different for each day of the week.
Its for our DJ Panel Timetable, and I will find it realy usefull.
+ Rep for first person to help :D
Printable View
Well i need a script where the page is different for each day of the week.
Its for our DJ Panel Timetable, and I will find it realy usefull.
+ Rep for first person to help :D
Haven't tested, but it should solve your problem.HTML Code:<script type="text/javascript">
<!--
//Sunday
var d0 = new Array('Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John');
//Monday
var d1 = new Array('Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John');
//Tuesday
var d2 = new Array('Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John');
//Wednesday
var d3 = new Array('Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John');
//Thursday
var d4 = new Array('Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John');
//Friday
var d5 = new Array('Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John');
//Saturday
var d6 = new Array('Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John', 'Bob', 'Dave', 'Mike', 'John');
var dObj = new Date()
var day = dObj.getDay()
eval('var times = d'+day+';');
for(i=0; i<24; i++) {
ti = i;
if(i<10) ti = '0'+i;
document.write(ti+':00 - '+times[i]+'<br/>');
}
-->
</script>
i needed it also but now i forgot what for. thanx josh
I Mean like a different page. Like Monday - http://url.com/monday.php
Tuesday - http://url.com/tuesday.php
can some 1 post the full script, where all i have to do is put in the URL plz :D