JavaScript Source Code 3000: Navigation: Day of Month Redirection
Day of Month Redirection
Or maybe you have a separate page for each day of the month. This script will detect what day of the month it is (1 31) and sends the user to [day of month].html (i.e. 1.html, 2.html, etc.)
JavaScript Source Code 3000: Navigation: Day of Month Redirection Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!
<!-- ONE STEP TO INSTALL DAY OF MONTH REDIRECTION:
1. Paste the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<! > <! >
<!-- Begin var today = new Date(); var day = today.getDate(); window.location = day + ".html"; // End --> </SCRIPT>