$('A[rel="external"]') .click( function() { window.open( $(this).attr('href') ); return false; });</pre>Open External Links In New WindowOznaczenie zewnętrznych linków za pomocą css: <pre>a[target="_blank"] { padding-right: 18px; display: inline-block; line-height: 14px; background: url(new_window.png) center right no-repeat; }
Obrazek:
http://www.tarnaski.eu/blog/wp-content/themes/minyx2Lite/pix/new_window.png
http://www.tarnaski.eu/blog/znowu-lubimy-target_blank/