I have a date script that looks up the month and date and then will open js
example
Code:
if ((daym==16)&&(month==8)) document.write("<a href=\"august/august_1.html\">August 1 </a>")
if ((daym==26)&&(month==3)) document.write("<script src=\"jsfiles/26.js\"></script>")
if ((daym==27)&&(month==3)) document.write("<script src=\"jsfiles/27.js\"></script>")
if ((daym==28)&&(month==3)) document.write("<script src=\"jsfiles/28.js\"></script>")
if ((daym==29)&&(month==3)) document.write("<script src=\"jsfiles/29.js\"></script>")
if ((daym==30)&&(month==3)) document.write("<script src=\"jsfiles/30.js\"></script>")
if ((daym==31)&&(month==3)) document.write("<script src=\"jsfiles/30.js\"></script>")
what i need to do is on the date to open a html file
i have writen in the past all the information in the html file into a js file, but it takes up a lot of time
is there a way to have a document.LOAD("august_1.html"> when the date is reached
example
Code:
if ((daym==16)&&(month==8)) document.load("august_16.html")
if ((daym==17)&&(month==8)) document.load("august_17.html")
if ((daym==18)&&(month==8)) document.load("august_18.html")
any ideas on this????
Bookmarks