// paste this into your archive template, and remember // there should be absolutely nothing else in your archive template // moname[0] = "Janvier" ... var moname = new Array ("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"); // we need the links and names in an array, so we can loop through the options in the select menu var archlinks = new Array; var archnames = new Array; var i = 0; // tmp="05/01/2001 - 05/31/2001" tmp="01/01/2001 - 01/31/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_01_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="02/01/2001 - 02/28/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_02_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="03/01/2001 - 03/31/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_03_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="04/01/2001 - 04/30/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_04_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="05/01/2001 - 05/31/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_05_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="06/01/2001 - 06/30/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_06_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="07/01/2001 - 07/31/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_07_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="08/01/2001 - 08/31/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_08_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // tmp="05/01/2001 - 05/31/2001" tmp="09/01/2001 - 09/30/2001"; // get number for month mo=tmp.substring(13,15); // get number for year yr=tmp.substring(19); // change month number to name - remember Janvier = 0 mo=moname[mo - 1]; // set date to "Mai 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_09_01_urbanmonk_archive.html"; archnames[i] = newdate; i++; // change current location to archlink when selected from menu function gothere(where) { location.href = where.options[where.selectedIndex].value } // tell the script to start a form - the \ before the " tells javascript that you want to write a " rather // than interpreting it as the end of the stuff you want to write document.write("
");