<!-- PERSONALISED USER INFO --> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2001, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- function showDetails() { onError=null; name = window.prompt("Please enter your name below:",""); if (name=="null" || name=="") return; browser = navigator.appName; ver = navigator.appVersion; version = ver.substring(0,4); if (navigator.appName.indexOf('Microsoft') != -1) { add = "+"; } else { add = ""; } if (navigator.javaEnabled()) { status = " Enabled"; } else status = " Not Enabled"; Platform="Not Known"; if (navigator.platform.indexOf('Win') != -1) { if (navigator.userAgent.indexOf('95') != -1) Platform="Windows95"; else if (navigator.userAgent.indexOf('98') != -1) Platform="Windows98"; else if (navigator.userAgent.indexOf('00') != -1) Platform="Windows2000"; else Platform="WindowsNT/ME/XP"; } if (navigator.platform.indexOf('Mac') != -1) Platform="Macintosh"; if (navigator.platform.indexOf('UNI') != -1) Platform="UNIX"; if (navigator.platform.indexOf('Lin') != -1) Platform="Linux"; if (navigator.platform.indexOf('Sun') != -1) Platform="SunOS"; width = window.screen.width; height = window.screen.height; colour = window.screen.colorDepth; // you can change the details below to suit your needs window.alert("Hello " + name + "! Welcome to Sandeep's Nook!!\n\nHere are a few details of your system:\nBrowser: "+browser+" v"+version+add + "\nJava: "+status + "\nOperating System: "+Platform + "\nResolution: "+width+" x "+height + "\nColour Depth: "+colour+" bit"); } // --> </script> <!-- This goes into the BODY of the file --> <form> <input type="button" value="Show Details" onClick="showDetails()" /> </form>