<!-- PERSONALISED GREETING --> <script language="JavaScript" type="text/javascript"> <!-- Cookie script - Scott Andrew --> <!-- Greeting modification - Copyright 2005, Sandeep Gangadharan --> <!-- var exp = 30; // the number at the left reflects the number of days for the cookie to last // modify it according to your needs function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameSG = name + "="; var ca = document.cookie.split(';'); for(var i=0; i<ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameSG) == 0) return c.substring(nameSG.length,c.length); } return null; } function theMsg() { var num = readCookie('sancookie2'); var space = "&nbsp;"; if (num < 1) { num = prompt("Please enter your name below:", ""); if (num == null || num == "") { num = ""; space = ""; } createCookie('sancookie2', num, exp); } document.write("Hello<b>" + space + num + "</b>! Welcome to Sandeep's Nook!!"); } // Users can modify the text at left // to best suit their needs //--> </script> <body> <!-- This is the script to be included in the BODY of the html file. It should be placed wherever the users want to best suit their needs. --> <font size="2" face="verdana, arial, helvetica, sans-serif"> <script language="JavaScript" type="text/javascript"> <!-- theMsg(); //--> </script> </font>