external link icon
<p>Using a script, that works great. It pops in a external link icon next to external links. Whoopydoo... and also adds a target="_blank" attribute.</p>

<p>The issue I have is, I dont want it to work on IMAGES.</p>

<p>Only on text links , so any sugestions.</p>

<p>The jquery is:</p>

<pre><code>(function(a){
a.fn.link_external_icon=function(p){
    var p=p||{};
    var icon_path=p&amp;&amp;p.icon_path?p.icon_path:"link_external.png";
    var n=a(this);
    n.find("a[target='_blank']").css("padding-right","13px").css("background-image","url("+icon_path+")").css("background-repeat","no-repeat").css("background-position","center right");
}
</code></pre>

<p>})(jQuery);</p>

<p>The Script is:</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
        $(function() {
            $("body").link_external_icon({
                icon_path:"../images/link_external.png"
            });
        });
    &lt;/script&gt;
</code></pre>

<p>Image is: <img src="http://i.stack.imgur.com/ikX0m.png" alt="enter image description here"></p>

<p>Any help appreciated.</p>

<p>Original code is: <a href="http://htmldrive.net/items/show/161/Link-external-icon-jQuery-plugin-for-show-external-linktarget_blank-icon.html" rel="nofollow">http://htmldrive.net/items/show/161/Link-external-icon-jQuery-plugin-for-show-external-linktarget_blank-icon.html</a></p>
