I would suggest that you add a unique second link token to the rel=''
attribute. Add 'nofollow' and it tells Fancybox not to build a gallery.
To add use this block of code in your document.ready() block:
jQuery('a:has(img)').filter(function()
{
if (jQuery(this).attr('rel').match(/[\w]+(external)/gi))
{
jQuery(this).attr(
{
'rel': 'nofollow'
});
}
return false;
});
This is off the top of my head, so the regex might be wrong.
Should fix you up!
On 2010/11/29 02:32 AM, RavanH wrote:
> Yep, you are right... it still works... ( provided the FancyBox jQuery
> call runs AFTER javascript that automatically attaches the rel
> attribute ! )
>
> To answer your question "what for":
> The rel attribute keyword 'external' is there for accessibility
> reasons. It is one of the allowed rel keywords (while arbitrary stuff
> like 'fancybox' or 'gallery' is not!) in the HTML5 specs and is meant
> to indicate links that are outside the domain. Read more on
> http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#linkTypes
> ..