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![]()

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![]()
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>
kinda quit.
i needed it also but now i forgot what for. thanx josh
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
I Mean like a different page. Like Monday - http://url.com/monday.php
Tuesday - http://url.com/tuesday.php
The script I posted will do what you're asking for, but if you're just looking for a simple PHP script:I Mean like a different page. Like Monday - http://url.com/monday.php
Tuesday - http://url.com/tuesday.php
"Mon.txt" to "Sun.txt" containing your HTML for those days.PHP Code:<? print file_get_contents(date('D').'.txt'); ?>
Last edited by nets; 27-09-2006 at 07:01 PM.
kinda quit.
where do I put that, and does it have to be txt ?
can some 1 post the full script, where all i have to do is put in the URL plz![]()
Want to hide these adverts? Register an account for free!