Copy the Script...

Copy the below JavaScript to your clipboard...

<!-- script begin hiding from old browsers // Copyright 1998, 1999, 2000 Doc Roberts, All Rights reserved // Version 1.1, May 21, 1998 // Version 1.2, December 14, 1999 Y2K patch // Version 1.3, January 12, 2000 Leap century patch // Reuse is permitted for non-commercial applications // These are Global variables var FileName = ""; var DateString = ""; function OpenFile(cb,tn) { // This is the month array var monthname = new Array(12) monthname[1] = "January"; monthname[2] = "February"; monthname[3] = "March"; monthname[4] = "April"; monthname[5] = "May"; monthname[6] = "June"; monthname[7] = "July"; monthname[8] = "August"; monthname[9] = "September"; monthname[10] = "October"; monthname[11] = "November"; monthname[12] = "December"; // Number of days in each month... Remember to adjust for leap year var thismonth = new Array(12) thismonth[1] = 31; thismonth[2] = 28; thismonth[3] = 31; thismonth[4] = 30; thismonth[5] = 31; thismonth[6] = 30; thismonth[7] = 31; thismonth[8] = 31; thismonth[9] = 30; thismonth[10] = 31; thismonth[11] = 30; thismonth[12] = 31; var today = new Date(); var date = today.getDate(); var month = today.getMonth() + 1; var year = today.getYear(); var dateStr = ""; var monthStr = "; var bName = navigator.appName; var bVer = parseFloat(navigator.appVersion); // Yes, folks... four ways to calulate the year based on browser types yearStr = year; // #1 for older browsers if(yearStr <=99) { year = year + 1900; } // #2 new Netscape method (year 2000 = 100) if ((yearStr >=100) && (yearStr <= 199)) { yearStr = yearStr -100; // year = yearStr + 2000; if (yearStr <=9) { yearStr = "0" + yearStr; year = year + 1900; } } // #3 new IE method for pre 2000 if((yearStr >=200) && ( yearStr <= 1999)) { yearStr = yearStr - 1900; } // #4 new IE method for 2000 if (yearStr >= 2000) { yearStr = yearStr - 2000; if (yearStr <=9) { yearStr = "0" + yearStr; } } // Leap century patch if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) thismonth[2] = 29; // Now we figure out what month and year to load if (cb >= date) { if(month ==1) { yearStr = yearStr -1; if (yearStr <=9) { yearStr = "0" + yearStr; } year = year -1; month =12; date = date + thismonth[month] - cb; } else { month = month -1; date = date + thismonth[month] - cb; } } else { date = date - cb; } dateStr = date; if (date <= 9) { dateStr = "0" + date; } monthStr = month; if (month <=9) { monthStr = "0" + month; } FileName = yearStr +""+ monthStr + dateStr + "-" + tn +".jpg"; PictureName = year +""+ monthStr + dateStr + "-1.jpg"; // Put the date together nicely DateString = monthname[month] + " " + date + ", " + year; document.write ("<font size=4>",DateString,"</font>", "<br>"); // Display the picture as a "clickable" thumbnail if (tn==0) { document.write("<a href='"+PictureName+"'><img src='"+FileName+"' border=1></a>"); } // Or display the picture else { document.write ("<img src='"+FileName+"' border=0>"); } return; } // end hiding -->