Hi bohdan
your oneliner works fine :) thanks
but the problem is still there.
Maybe is just a conflict with another script but it's weird that it
happens only in one page..
i'll check better..
thanks vitto
On Jan 31, 7:32 pm, besh [EMAIL PROTECTED] wrote:
Hi vitto,
are you sure that the
Hi vitto,
are you sure that the problem isn't somewhere else? Link would be
fine...
Anyway, I have a tip for you. What about to make this a oneliner:
$('a.ppt, a.pdf, a.allegato, a.doc, a.jpg, a.xls, a.external,
a.zip').attr('target','_blank');
--
Bohdan Ganicky
On Jan 31, 3:46 pm, hcvitto
hcvitto wrote:
: hi i'm using this code to add the target=_blank attribute to links.
:
: $(a[href]).each(function(){
: if ($(this).hasClass(ppt) || $(this).hasClass(pdf) || $
: (this).hasClass(allegato) || $(this).hasClass(doc) || $
: (this).hasClass(jpg) || $(this).hasClass(xls)
3 matches
Mail list logo