Content-Type: text/plain; charset="US-ASCII" Rashi Chandra Tata Consultancy Services Mailto: rashi.chandra@xxxxxxx Website: http://www.tcs.com ----- Forwarded by Rashi Chandra/DEL/TCS on 02/14/04 03:30 PM ----- Shama 1/DEL/TCS 02/14/04 10:29 AM To Rashi.chandra@xxxxxxx cc Subject Fw: Fantastic GAME..... !!! tell me how much time did u last long !!! Shama Tata Consultancy Services Mailto: shama.1@xxxxxxx Website: http://www.tcs.com ----- Forwarded by Shama 1/DEL/TCS on 02/14/04 10:44 AM ----- "Surendra_reddy" <Surendra_reddy@xxxxxxxxxxx> 02/13/04 01:30 PM To cc Subject Fantastic GAME..... !!! tell me how much time did u last long !!! I could do it for 22 seconds as of now ! Luv, Suri (www.surendra.org) ForwardSourceID:NT000031BE ForwardSourceID:NT000029AE -- HTML Attachment decoded to text by Ecartis -- -- File: dodge.htm Escape! isNS4 = (document.layers) ? true : false; isIE4 = (document.all && !document.getElementById) ? true : false; isIE5 = (document.all && document.getElementById) ? true : false; isNS6 = (!document.all && document.getElementById) ? true : false; var curX, curY, curX2, curY2, boxX, boxY, moving=0, touch=0; var gametime=0, started=0, speed; var starttime, endtime, finaltime=0; //pass finaltime to popup window to ask for initials var enemyxdir = new Array(1,1,1,1); var enemyydir = new Array(1,1,1,1); if (isNS4 || isNS6){ document.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN|Event.MOUSEMOVE); } document.onmousedown = start; document.onmousemove = checkLocation; document.onmouseup = stop; function startclock() {var today = new Date(); starttime = today.getTime();} function endclock() {var today = new Date(); endtime = today.getTime();} function calctime() {var time = (endtime - starttime - 0)/1000; return time;} function giveposX(divname) { if (isNS4) var posLeft = document.layers[divname].left; else if (isIE4 || isIE5) var posLeft = document.all(divname).style.pixelLeft; else if (isNS6) var posLeft = parseInt(document.getElementById(divname).style.left + ""); return posLeft;} function giveposY(divname) { if (isNS4) var posTop = document.layers[divname].top; else if (isIE4 || isIE5) var posTop = document.all(divname).style.pixelTop; else if (isNS6) var posTop = parseInt(document.getElementById(divname).style.top + ""); return posTop; } function setposX(divname, xpos) { if (isNS4) document.layers[divname].left = xpos; else if (isIE4 || isIE5) document.all(divname).style.pixelLeft = xpos; else if (isNS6) document.getElementById(divname).style.left = xpos; } function setposY(divname, ypos) { if (isNS4) document.layers[divname].top = ypos; else if (isIE4 || isIE5) document.all(divname).style.pixelTop = ypos; else if (isNS6) document.getElementById(divname).style.top = ypos; } functiongivesize(divname, dimension) { var divsize = 0; if (dimension == 'y'){ if (isNS4) divsize = document.layers[divname].clip.height; else if (isIE4 || isIE5) divsize = document.all(divname).style.pixelHeight; else if (isNS6) divsize = parseInt(document.getElementById(divname).style.height + ""); } else if (dimension == 'x') { if (isNS4) divsize = document.layers[divname].clip.width; else if (isIE4 || isIE5) divsize = document.all(divname).style.pixelWidth; else if (isNS6) divsize = parseInt(document.getElementById(divname).style.width + ""); } return divsize; } // check to see if 'box' is touching 'enemy1' function checktouching(num) { var enemy = "enemy" + num + "" var difX = giveposX('box') - giveposX(enemy) - 0; // -0 converts to integer var difY = giveposY('box') - giveposY(enemy) - 0; // set touch = 1 if it is touching an enemy if (difX > (-1 * givesize('box', 'x')) && difX (-1 * givesize('box', 'y')) && difY = (450 - enemyx) || giveposX(enemy) = (450 - enemyy) || giveposY(enemy) = 0 && gametime = 100 && gametime = 200 && gametime = 300 && gametime = 400 && gametime boxleft && curX2 boxtop && curY2 -- Attached file included as plaintext by Ecartis -- -- File: InterScan_Disclaimer.txt DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. "Successful people are not the ones who cross the first hurdle first, But are the ones who cross the last hurdle first".