// paste this into your archive template, and remember // there should be absolutely nothing else in your archive template // moname[0] = "January" ... var moname = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); // 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="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 January = 0 mo=moname[mo - 1]; // set date to "May 2001" newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archives/2001_09_01_timearch.htm"; 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("
");