<?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: Download link warning icon needed</title>
	<atom:link href="http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/</link>
	<description>Niko Nyman's blog on shifting topics.</description>
	<pubDate>Tue, 06 Jan 2009 11:03:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: niko</title>
		<link>http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/comment-page-1/#comment-15</link>
		<dc:creator>niko</dc:creator>
		<pubDate>Fri, 04 Nov 2005 14:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/#comment-15</guid>
		<description>&lt;p&gt;The problem comes with URLs where "something.pdf" is included in the last parameter name, for example:
    www.url.com/something.php?param=moreSomething.pdf&lt;/p&gt;

&lt;p&gt;I made it &lt;code&gt;a:hover&lt;/code&gt; so I get warned when I'm about to click the link.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The problem comes with URLs where &#8220;something.pdf&#8221; is included in the last parameter name, for example:
    <a href="http://www.url.com/something.php?param=moreSomething.pdf" rel="nofollow">http://www.url.com/something.php?param=moreSomething.pdf</a></p>

<p>I made it <code>a:hover</code> so I get warned when I&#8217;m about to click the link.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Visa</title>
		<link>http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/comment-page-1/#comment-14</link>
		<dc:creator>Visa</dc:creator>
		<pubDate>Fri, 04 Nov 2005 14:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/#comment-14</guid>
		<description>&lt;p&gt;Oh, and make it &lt;code&gt;a[href=...]&lt;/code&gt; instead of &lt;code&gt;a:link[href=...]&lt;/code&gt;. Otherwise you lose your styling after visiting the link.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oh, and make it <code>a[href=...]</code> instead of <code>a:link[href=...]</code>. Otherwise you lose your styling after visiting the link.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Visa</title>
		<link>http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/comment-page-1/#comment-13</link>
		<dc:creator>Visa</dc:creator>
		<pubDate>Fri, 04 Nov 2005 14:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/#comment-13</guid>
		<description>&lt;p&gt;How about this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;a:link[href*=".pdf?"], a:link[href$=".pdf"] { ... }&lt;/code&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>How about this:</p>

<p><code>a:link[href*=".pdf?"], a:link[href$=".pdf"] { &#8230; }</code></p>]]></content:encoded>
	</item>
	<item>
		<title>By: niko</title>
		<link>http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/comment-page-1/#comment-12</link>
		<dc:creator>niko</dc:creator>
		<pubDate>Fri, 04 Nov 2005 12:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/#comment-12</guid>
		<description>&lt;p&gt;So now all I need is a rule that says "select all &lt;code&gt;&lt;a&gt;&lt;/a&gt;&lt;/code&gt; elements that include string &lt;em&gt;.pdf&lt;/em&gt; after the first &lt;code&gt;/&lt;/code&gt; character and before the first encountered &lt;code&gt;?&lt;/code&gt; character, and I'm all set. ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So now all I need is a rule that says &#8220;select all <code><a></a></code> elements that include string <em>.pdf</em> after the first <code>/</code> character and before the first encountered <code>?</code> character, and I&#8217;m all set. ;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Visa</title>
		<link>http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/comment-page-1/#comment-11</link>
		<dc:creator>Visa</dc:creator>
		<pubDate>Fri, 04 Nov 2005 12:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/#comment-11</guid>
		<description>&lt;p&gt;XML.com has a &lt;a href="http://www.xml.com/pub/a/2003/06/18/css3-selectors.html" rel="nofollow"&gt;tutorial on CSS3 selectors&lt;/a&gt;. There you can learn that instead of using &lt;code&gt;a:link[href*=".zip"]&lt;/code&gt; like in my example, you can also use &lt;code&gt;a:link[href$=".zip"]&lt;/code&gt; which will only match URLs that &lt;i&gt;end&lt;/i&gt; with ".zip".&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>XML.com has a <a href="http://www.xml.com/pub/a/2003/06/18/css3-selectors.html" rel="nofollow">tutorial on CSS3 selectors</a>. There you can learn that instead of using <code>a:link[href*=".zip"]</code> like in my example, you can also use <code>a:link[href$=".zip"]</code> which will only match URLs that <i>end</i> with &#8220;.zip&#8221;.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Visa</title>
		<link>http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/comment-page-1/#comment-10</link>
		<dc:creator>Visa</dc:creator>
		<pubDate>Fri, 04 Nov 2005 10:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.nnyman.com/personal/2005/11/04/download-link-warning-icon-needed/#comment-10</guid>
		<description>&lt;p&gt;That would only work if the URL has a file extension. However, this is not always the case.&lt;/p&gt;

&lt;p&gt;And anyway, it can't be done with a basic CSS hack since it can't be determined in CSS which files are downloaded to the disk and which are displayed in the browser. For example, PDFs are displayed in the browser if you have installed a PDF plugin and downloaded if you haven't.&lt;/p&gt;

&lt;p&gt;There are ways to change the link's appearance by its URL. See an example at &lt;a href="http://www.visakopu.net/misc/css/url_icon/" rel="nofollow"&gt;http://www.visakopu.net/misc/css/url_icon/&lt;/a&gt;. Works at least in Safari and Firefox.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That would only work if the URL has a file extension. However, this is not always the case.</p>

<p>And anyway, it can&#8217;t be done with a basic CSS hack since it can&#8217;t be determined in CSS which files are downloaded to the disk and which are displayed in the browser. For example, PDFs are displayed in the browser if you have installed a PDF plugin and downloaded if you haven&#8217;t.</p>

<p>There are ways to change the link&#8217;s appearance by its URL. See an example at <a href="http://www.visakopu.net/misc/css/url_icon/" rel="nofollow">http://www.visakopu.net/misc/css/url_icon/</a>. Works at least in Safari and Firefox.</p>]]></content:encoded>
	</item>
</channel>
</rss>
