<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: how to create a Typing Effect, an Eraser Effect and a Blinking Cursor using jQuery</title>
	<atom:link href="http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery</link>
	<description>useful info to burn into your mind</description>
	<lastBuildDate>Wed, 18 Jan 2012 03:28:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-74810</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 12 Jan 2012 00:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-74810</guid>
		<description>Hey, just wanted to express my thanks for this helpful tip/tutorial.
To expand on the comments, you can loop/repeat the array by adding the code below:

if(index==lines.length)
{
  index = 0;
}

(put it in the type() function directly below the &quot;index++;&quot; line)</description>
		<content:encoded><![CDATA[<p>Hey, just wanted to express my thanks for this helpful tip/tutorial.<br />
To expand on the comments, you can loop/repeat the array by adding the code below:</p>
<p>if(index==lines.length)<br />
{<br />
  index = 0;<br />
}</p>
<p>(put it in the type() function directly below the &#8220;index++;&#8221; line)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lance</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-71570</link>
		<dc:creator>lance</dc:creator>
		<pubDate>Sat, 24 Dec 2011 22:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-71570</guid>
		<description>very cool.  I&#039;m about to dig in and make it repeat on finishing the last string in the array.</description>
		<content:encoded><![CDATA[<p>very cool.  I&#8217;m about to dig in and make it repeat on finishing the last string in the array.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carnew</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-68935</link>
		<dc:creator>carnew</dc:creator>
		<pubDate>Thu, 08 Dec 2011 04:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-68935</guid>
		<description>Nice coding, very useful. Thanks</description>
		<content:encoded><![CDATA[<p>Nice coding, very useful. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: burnmind</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-44179</link>
		<dc:creator>burnmind</dc:creator>
		<pubDate>Fri, 22 Jul 2011 09:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-44179</guid>
		<description>You&#039;re welcome.

Try to do it as a homework. ;-)

Some ideas:
- The line is being written in the &quot;caption&quot; paragraph. You could have multiple paragraphs (with different IDs instead of the same class) acting as the multiple lines.

- Duplicate some of the typing/erasing effect code to make it work for all the paragraphs simultaneously. It might not be the pest practice, but it will get you going.

- The cursor is irrelevant of the typing effect, and it blinks wherever you place the paragraph with the class &quot;cursor&quot;.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome.</p>
<p>Try to do it as a homework. <img src='http://www.burnmind.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Some ideas:<br />
- The line is being written in the &#8220;caption&#8221; paragraph. You could have multiple paragraphs (with different IDs instead of the same class) acting as the multiple lines.</p>
<p>- Duplicate some of the typing/erasing effect code to make it work for all the paragraphs simultaneously. It might not be the pest practice, but it will get you going.</p>
<p>- The cursor is irrelevant of the typing effect, and it blinks wherever you place the paragraph with the class &#8220;cursor&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-44104</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 22 Jul 2011 01:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-44104</guid>
		<description>Perfect. Thank you very much! Very impressive respond times too. I&#039;ll have to peruse your site now and see what other helpful information you&#039;re sharing. Thanks again.

Hmmm...just an afterthought - would it be easily doable to have the TypeWriter effect display multiple lines at the same time (and cursor blink only at the end of the last line)? Or is that going too far?</description>
		<content:encoded><![CDATA[<p>Perfect. Thank you very much! Very impressive respond times too. I&#8217;ll have to peruse your site now and see what other helpful information you&#8217;re sharing. Thanks again.</p>
<p>Hmmm&#8230;just an afterthought &#8211; would it be easily doable to have the TypeWriter effect display multiple lines at the same time (and cursor blink only at the end of the last line)? Or is that going too far?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: burnmind</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-44097</link>
		<dc:creator>burnmind</dc:creator>
		<pubDate>Fri, 22 Jul 2011 00:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-44097</guid>
		<description>I didn&#039;t notice that the &quot;&lt;&quot; character made the if condition to be treated as an html tag. I fixed it, so try again using the code in the previous comments. Now it should work properly.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t notice that the &#8220;<&#8221; character made the if condition to be treated as an html tag. I fixed it, so try again using the code in the previous comments. Now it should work properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-44092</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 21 Jul 2011 23:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-44092</guid>
		<description>That seems to break it as well. Could I possibly PM/email you for some help? so I don&#039;t fill up the comments :(</description>
		<content:encoded><![CDATA[<p>That seems to break it as well. Could I possibly PM/email you for some help? so I don&#8217;t fill up the comments <img src='http://www.burnmind.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: burnmind</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-44085</link>
		<dc:creator>burnmind</dc:creator>
		<pubDate>Thu, 21 Jul 2011 23:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-44085</guid>
		<description>Replace the type() function with the following:

function type() 
{
	if(index &lt; lines.length)
	{
		caption = lines[index];
		$(&#039;p.caption&#039;).html(caption.substr(0, captionLength++));
		if(captionLength &lt; caption.length+1)
		{
			setTimeout(&quot;type()&quot;, 50);
		}
		else
		{
			captionLength = caption.length;
			if(index &lt; lines.length-1)
			{
				setTimeout(&quot;erase()&quot;, 500);
			}
			index++;
		}
	}
}</description>
		<content:encoded><![CDATA[<p>Replace the type() function with the following:</p>
<p>function type()<br />
{<br />
	if(index < lines.length)<br />
	{<br />
		caption = lines[index];<br />
		$(&#8216;p.caption&#8217;).html(caption.substr(0, captionLength++));<br />
		if(captionLength < caption.length+1)<br />
		{<br />
			setTimeout(&#8220;type()&#8221;, 50);<br />
		}<br />
		else<br />
		{<br />
			captionLength = caption.length;<br />
			if(index < lines.length-1)<br />
			{<br />
				setTimeout(&#8220;erase()&#8221;, 500);<br />
			}<br />
			index++;<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-44082</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 21 Jul 2011 23:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-44082</guid>
		<description>Uh oh. You lost me. I tried that in a few different places and just keep breaking the function (sorry...bit of a jquery noob here). Could I bother you for the full source code for that?</description>
		<content:encoded><![CDATA[<p>Uh oh. You lost me. I tried that in a few different places and just keep breaking the function (sorry&#8230;bit of a jquery noob here). Could I bother you for the full source code for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: burnmind</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/comment-page-1#comment-44079</link>
		<dc:creator>burnmind</dc:creator>
		<pubDate>Thu, 21 Jul 2011 23:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.burnmind.com/?p=290#comment-44079</guid>
		<description>In the type() function, wrap the call to the erase() function in an if statement like this:

if(index &lt; lines.length-1)
{
   setTimeout(&quot;erase()&quot;, 500);
}</description>
		<content:encoded><![CDATA[<p>In the type() function, wrap the call to the erase() function in an if statement like this:</p>
<p>if(index < lines.length-1)<br />
{<br />
   setTimeout(&#8220;erase()&#8221;, 500);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

