<?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: Unobtrusive, cross-browser method to add icons to links</title>
	<atom:link href="http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/</link>
	<description>Adventures in front-end consulting</description>
	<lastBuildDate>Wed, 17 Mar 2010 19:27:37 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael van Laar</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-925</link>
		<dc:creator>Michael van Laar</dc:creator>
		<pubDate>Sat, 31 Oct 2009 14:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-925</guid>
		<description>Tanks a lot for this great tutorial! I just discovered a little bug: If a link includes a line break, the position of the inserted icon is wrong. In the pure CSS version (for all browsers, except IE 6) this does not happen.

This is how it looks on a test page: http://www.michael-van-laar.de/fileserver/diverses/icon-bug.png (Picture 1: CSS method in Firefox; picture 2: Javascript method in IE 6)

Since I’m not very familiar with Javascript yet, I don’t have an idea, if and how this could be fixed. Any ideas?</description>
		<content:encoded><![CDATA[<p>Tanks a lot for this great tutorial! I just discovered a little bug: If a link includes a line break, the position of the inserted icon is wrong. In the pure CSS version (for all browsers, except IE 6) this does not happen.</p>
<p>This is how it looks on a test page: <a href="http://www.michael-van-laar.de/fileserver/diverses/icon-bug.png" rel="nofollow">http://www.michael-van-laar.de/fileserver/diverses/icon-bug.png</a> (Picture 1: CSS method in Firefox; picture 2: Javascript method in IE 6)</p>
<p>Since I’m not very familiar with Javascript yet, I don’t have an idea, if and how this could be fixed. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Links mit Dateityp-Icons via CSS</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-722</link>
		<dc:creator>Links mit Dateityp-Icons via CSS</dc:creator>
		<pubDate>Thu, 19 Mar 2009 16:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-722</guid>
		<description>[...] Wie üblich funktioniert das im IE6 nicht, es gibt aber Crossbrowser-taugliche Möglichkeit beispielsweise via jQuery. Interessierte finden dazu einen Artikel bei Rebecca Murphey. [...]</description>
		<content:encoded><![CDATA[<p>[...] Wie üblich funktioniert das im IE6 nicht, es gibt aber Crossbrowser-taugliche Möglichkeit beispielsweise via jQuery. Interessierte finden dazu einen Artikel bei Rebecca Murphey. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-634</link>
		<dc:creator>D</dc:creator>
		<pubDate>Wed, 31 Dec 2008 21:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-634</guid>
		<description>This is a great use of JQuery.

How would one go about getting this to work for mailto links?

Thanks!</description>
		<content:encoded><![CDATA[<p>This is a great use of JQuery.</p>
<p>How would one go about getting this to work for mailto links?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rebecca</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-603</link>
		<dc:creator>Rebecca</dc:creator>
		<pubDate>Sat, 20 Dec 2008 01:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-603</guid>
		<description>@Aaron: after you&#039;ve set $a, you can do:

if ($a.children(&#039;img&#039;).size()) { return; }

This will prevent the rest of the function from running, so the background image won&#039;t be added.</description>
		<content:encoded><![CDATA[<p>@Aaron: after you&#8217;ve set $a, you can do:</p>
<p>if ($a.children(&#8217;img&#8217;).size()) { return; }</p>
<p>This will prevent the rest of the function from running, so the background image won&#8217;t be added.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-602</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sat, 20 Dec 2008 00:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-602</guid>
		<description>What about if you have an image as a link? Will it add the icon next to an image? I am trying to find a solution so it does not add an image next to images that are links.

Thanks and great code!</description>
		<content:encoded><![CDATA[<p>What about if you have an image as a link? Will it add the icon next to an image? I am trying to find a solution so it does not add an image next to images that are links.</p>
<p>Thanks and great code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Rutter</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-116</link>
		<dc:creator>Jake Rutter</dc:creator>
		<pubDate>Thu, 19 Jun 2008 02:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-116</guid>
		<description>This is a great use of jQuery for a very applicable script. Kudos to  you!</description>
		<content:encoded><![CDATA[<p>This is a great use of jQuery for a very applicable script. Kudos to  you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linklere Otomatik İkon &#124; elektronik projeler devreler web grafik</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-75</link>
		<dc:creator>Linklere Otomatik İkon &#124; elektronik projeler devreler web grafik</dc:creator>
		<pubDate>Wed, 27 Feb 2008 18:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-75</guid>
		<description>[...]  hemen denedim bir türlü olmadı sonrasıda aynı sitede bulunan linklerden uygulamanın html ve farklı örneklerine ulaştım dene dene yok olmadı  sonrasında ilk yapmam gerekeni yaptım  ilk sitede [...]</description>
		<content:encoded><![CDATA[<p>[...]  hemen denedim bir türlü olmadı sonrasıda aynı sitede bulunan linklerden uygulamanın html ve farklı örneklerine ulaştım dene dene yok olmadı  sonrasında ilk yapmam gerekeni yaptım  ilk sitede [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Automatic Link Icons v2.0 &#124; Psyked</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-40</link>
		<dc:creator>Automatic Link Icons v2.0 &#124; Psyked</dc:creator>
		<pubDate>Tue, 08 Jan 2008 20:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-40</guid>
		<description>[...] are other ways than just CSS, however. Check out this post by Rebecca Murphey, &#8220;Unobtrusive, cross-browser method to add icons to links&#8221; - using javascript to get the same [...]</description>
		<content:encoded><![CDATA[<p>[...] are other ways than just CSS, however. Check out this post by Rebecca Murphey, &#8220;Unobtrusive, cross-browser method to add icons to links&#8221; &#8211; using javascript to get the same [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rdmey</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-37</link>
		<dc:creator>rdmey</dc:creator>
		<pubDate>Mon, 07 Jan 2008 13:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-37</guid>
		<description>@James: There are a couple of downsides that I can think of: the fact that users without Javascript can&#039;t see it, the weight of the Javascript (while the code to accomplish this isn&#039;t any longer than the CSS would be, the jQuery library is bigger, and also requires another HTTP request). 

That said, if you are already using jQuery on your page for something else (and more and more often, I am), that becomes less of a consideration. And there are a lot more people using IE6 than there are people without Javascript enabled, so I think the tradeoff there is fair.</description>
		<content:encoded><![CDATA[<p>@James: There are a couple of downsides that I can think of: the fact that users without Javascript can&#8217;t see it, the weight of the Javascript (while the code to accomplish this isn&#8217;t any longer than the CSS would be, the jQuery library is bigger, and also requires another HTTP request). </p>
<p>That said, if you are already using jQuery on your page for something else (and more and more often, I am), that becomes less of a consideration. And there are a lot more people using IE6 than there are people without Javascript enabled, so I think the tradeoff there is fair.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/comment-page-1/#comment-36</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 07 Jan 2008 11:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rebeccamurphey.com/2008/01/06/unobtrusive-cross-browser-add-filetype-icon-link-javascript-jquery/#comment-36</guid>
		<description>Hey, this is pretty cool.  It&#039;s a shame pure CSS stylesheets can&#039;t give you the flexibility this approach does.  Are there any real downsides to using javascript for link icons?</description>
		<content:encoded><![CDATA[<p>Hey, this is pretty cool.  It&#8217;s a shame pure CSS stylesheets can&#8217;t give you the flexibility this approach does.  Are there any real downsides to using javascript for link icons?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
