// The following code fixes some bugs in the Funwithfonics program // By checking to see which Browser is being used. // Internet Explorer and Netscape display the .Date method differently // Newer versions of IE display the date in numeric format // Netscape however, displays the date as text, spelling out the // Month name. // This code should be substituted for the three lines of code starting with: // "var tNow = new Date()" // on line28 of the funwithfonics.htm program. // You can also use this code for the Kisdclub assignment . // I've tested this on IE 5.0 and Netscape 7. Output may be different // with other versions of these browsers. var tNow = new Date() var tlocDate = tNow.toLocaleString() if(navigator.appName=="Microsoft Internet Explorer") tDate= tlocDate.substring(0,10) if(navigator.appName=="Netscape") tDate= tNow.getMonth()+1+"/"+tNow.getDate()+"/"+tNow.getFullYear()