﻿// JScript File
// Delay in Typing Time - Rajiv Sharma
<!--
//var text="Hi this is Rajiv";
var text="Hi, I'm Rajiv, Programmer Analyst by profession; Specializing in Microsoft .NET Technologies I have over five years of experience in Web Application Development. This is my personal website here I post latest information about my social & family life, photography, articles & my blog etc. <br /><br />I believe in very simple life style; though I like complexities in technical stuff. I like to share every single feeling with God; good or bad. My goal in life is to create something, may be software or a device that will some day affect millions of people's lives positively throughout the world. I strive everyday to reach that goal.<br /><br />I try to update my website whenever I get time as there are few others things worth doing in life :-)<br /><br />Internet domain names are like girls, the ones you like are already taken, But I got the ones I like, Its my website name & my SunShine, So Keep guessing...<br /><img align='right' src='/images/sig.gif' border='0' />";
var delay=50;
var currentChar=1;
var destination="[not defined]";
function type()
{
  if (document.getElementById)
  {
    var dest=document.getElementById(destination);
    if (dest)// && dest.innerHTML)
    {
      dest.innerHTML=text.substr(0, currentChar);
      //dest.innerHTML+=text[currentChar-1];
      currentChar++
      if (currentChar>text.length)
      {
        currentChar=1;
        setTimeout("type()", 5000000);
      }
      else
      {
        setTimeout("type()", delay);
      }
    }
  }
}

function startTyping(textParam, delayParam, destinationParam)
{
  text=textParam;
  delay=delayParam;
  currentChar=1;
  destination=destinationParam;
  type();
}
//-->


//In Body Tag
//<DIV ID="textDestination"></DIV>
//<SCRIPT LANGUAGE="JavaScript">
//<!--
//startTyping(text, 50, "textDestination");
////-->
//</script>