<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Fancy Drop Cap - Part 1</title>
	<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1</link>
	<description>Getting to know the library of choice for unobtrusive JavaScript</description>
	<pubDate>Fri, 25 Jul 2008 03:28:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-27410</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Wed, 16 Jan 2008 19:34:39 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-27410</guid>
		<description>No need to wait. &lt;a href="/2006/10/fancy-drop-cap-part-2" rel="nofollow"&gt;Part 2 has been here&lt;/a&gt; for quite some time.</description>
		<content:encoded><![CDATA[<p>No need to wait. <a href="/2006/10/fancy-drop-cap-part-2" rel="nofollow">Part 2 has been here</a> for quite some time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thai Property</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-27372</link>
		<dc:creator>Thai Property</dc:creator>
		<pubDate>Wed, 16 Jan 2008 13:55:23 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-27372</guid>
		<description>So so nice jQury Article , i waiting for part two. Thanks</description>
		<content:encoded><![CDATA[<p>So so nice jQury Article , i waiting for part two. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-3873</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Thu, 29 Mar 2007 12:44:21 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-3873</guid>
		<description>Hi, etnt, you're welcome. So glad you like it. 

For turning the letters into images, I used the Type tool in Photoshop (though you can use just about any image editor with a Type function). I sized the canvas to be a bit larger than a single letter, typed a letter, and cropped the image so there was no white space around it. I saved the letter as a gif and then repeated the process. By the end, I had an image for each letter of the alphabet&#8212;a.gif, b.gif, c.gif, and so on.</description>
		<content:encoded><![CDATA[<p>Hi, etnt, you&#8217;re welcome. So glad you like it. </p>
<p>For turning the letters into images, I used the Type tool in Photoshop (though you can use just about any image editor with a Type function). I sized the canvas to be a bit larger than a single letter, typed a letter, and cropped the image so there was no white space around it. I saved the letter as a gif and then repeated the process. By the end, I had an image for each letter of the alphabet&mdash;a.gif, b.gif, c.gif, and so on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etnt</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-3869</link>
		<dc:creator>etnt</dc:creator>
		<pubDate>Thu, 29 Mar 2007 10:50:53 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-3869</guid>
		<description>Hi,

Thanx for making this excellent site!
I was just wondering how you turned the letters into images ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanx for making this excellent site!<br />
I was just wondering how you turned the letters into images ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: New Russian America &#187; Blog Archive &#187; Some links</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-3146</link>
		<dc:creator>New Russian America &#187; Blog Archive &#187; Some links</dc:creator>
		<pubDate>Tue, 06 Mar 2007 16:48:37 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-3146</guid>
		<description>[...] http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1" rel="nofollow">http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-2929</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sun, 25 Feb 2007 03:08:41 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-2929</guid>
		<description>Thank you, Matt! It means a lot to me that people like you appreciate what I'm doing here. Makes it all worthwhile. Come back and explore the other entries any time!</description>
		<content:encoded><![CDATA[<p>Thank you, Matt! It means a lot to me that people like you appreciate what I&#8217;m doing here. Makes it all worthwhile. Come back and explore the other entries any time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mpare</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-2928</link>
		<dc:creator>mpare</dc:creator>
		<pubDate>Sun, 25 Feb 2007 02:09:35 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-2928</guid>
		<description>Karl, great articles! Though I have not used anything yet and truth be told this is the first one I have read, I find it just wonderful that you take the time to reply to the comments. This gives your site an 'A++' in my book. 

Keep up the great work!

-mpare
&lt;a href="http://www.paretech.com" title="www.paretech.com" rel="nofollow"&gt;www.paretech.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Karl, great articles! Though I have not used anything yet and truth be told this is the first one I have read, I find it just wonderful that you take the time to reply to the comments. This gives your site an &#8216;A++&#8217; in my book. </p>
<p>Keep up the great work!</p>
<p>-mpare<br />
<a href="http://www.paretech.com" title="www.paretech.com" rel="nofollow">www.paretech.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-1453</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Tue, 16 Jan 2007 18:01:30 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-1453</guid>
		<description>For my solution to adding fancy drop caps to &lt;em&gt;every&lt;/em&gt; paragraph within a certain DIV, see my other entry: &lt;a href="/2006/12/multiple-fancy-drop-caps" rel="nofollow"&gt;Multiple Fancy Drop Caps&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>For my solution to adding fancy drop caps to <em>every</em> paragraph within a certain DIV, see my other entry: <a href="/2006/12/multiple-fancy-drop-caps" rel="nofollow">Multiple Fancy Drop Caps</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dusan Jovanovic</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-1451</link>
		<dc:creator>Dusan Jovanovic</dc:creator>
		<pubDate>Tue, 16 Jan 2007 17:31:45 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-1451</guid>
		<description>The code below is simpler, more robust and thus better. 
jQuery is not a panacea to be used always and everywhere. Otherwise pretty
good library.

&lt;code&gt;$(document).ready(function(){
 var ps = document.getElementsByTagName(&#34;P&#34;) ;
  for (  var j = 0 ;  j &#60; ps.length ; j++  )
  {
    swap_first_letter( ps(j) );    
  }  
});
function swap_first_letter( first_paragraph, first_letter ) 
{
if ( !first_paragraph ) return false; &lt;/code&gt;

&lt;code&gt;var text = first_paragraph.firstChild.nodeValue;
if ( ! text ) return false ;&lt;/code&gt;
&lt;code&gt;
var first_letter = text.substr(0,1); &lt;/code&gt;

    &lt;code&gt;first_paragraph.firstChild.nodeValue = text.slice(1);&lt;/code&gt;

&lt;code&gt;      var jq =  $(&apos;&#60;img /&#62;&apos;) ;
          jq.attr(&#34;src&#34;, (&apos;alphabet/&apos; + first_letter.toLowerCase() +
&apos;.gif&apos;) ) ;
          jq.attr(&apos;alt&apos;,first_letter) ;
          jq.addClass(&apos;fancy-letter&apos;) ;
          jq.prependTo( first_paragraph ) ; 
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>The code below is simpler, more robust and thus better.<br />
jQuery is not a panacea to be used always and everywhere. Otherwise pretty<br />
good library.</p>
<p><code>$(document).ready(function(){<br />
 var ps = document.getElementsByTagName(&quot;P&quot;) ;<br />
  for (  var j = 0 ;  j &lt; ps.length ; j++  )<br />
  {<br />
    swap_first_letter( ps(j) );<br />
  }<br />
});<br />
function swap_first_letter( first_paragraph, first_letter )<br />
{<br />
if ( !first_paragraph ) return false; </code></p>
<p><code>var text = first_paragraph.firstChild.nodeValue;<br />
if ( ! text ) return false ;</code><br />
<code><br />
var first_letter = text.substr(0,1); </code></p>
<p>    <code>first_paragraph.firstChild.nodeValue = text.slice(1);</code></p>
<p><code>      var jq =  $(&apos;&lt;img /&gt;&apos;) ;<br />
          jq.attr(&quot;src&quot;, (&apos;alphabet/&apos; + first_letter.toLowerCase() +<br />
&apos;.gif&apos;) ) ;<br />
          jq.attr(&apos;alt&apos;,first_letter) ;<br />
          jq.addClass(&apos;fancy-letter&apos;) ;<br />
          jq.prependTo( first_paragraph ) ;<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-193</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 09 Dec 2006 14:25:39 +0000</pubDate>
		<guid>http://www.learningjquery.com/2006/09/fancy-drop-cap-part-1#comment-193</guid>
		<description>Hi there jammodotnet, 
It looked like Derek had found a solution that worked for him, so I kind of dropped it. I'll take another look, though, and see if I can put something together for you. Look for another comment (or maybe even an entry) from me before the weekend is over.</description>
		<content:encoded><![CDATA[<p>Hi there jammodotnet,<br />
It looked like Derek had found a solution that worked for him, so I kind of dropped it. I&#8217;ll take another look, though, and see if I can put something together for you. Look for another comment (or maybe even an entry) from me before the weekend is over.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
