On Jul 25, 2007, at 10:04 AM, Joel Birch wrote:
Maybe this addresses this issue?
$('[EMAIL PROTECTED]://]').not('[EMAIL PROTECTED]')
that should do it. since the "http" would always come at the
beginning of the href, it might be a little cleaner to use "^" for
the first selector instead.
On 25/07/2007, at 11:18 PM, Karl Swedberg wrote:
Also, IIRC, [EMAIL PROTECTED] gets the actual value of the href attribute,
which can be different from what element.href gets, depending on
the browser (one of the browsers always returns the fully qualified
URL for element.href, including "h
On Jul 25, 2007, at 1:11 AM, oliver wrote:
>
> Then I'd try $('[EMAIL PROTECTED]').filter('[EMAIL PROTECTED]')
>
> 'select all links (with hrefs) and remove those that contain
> mysite.com'
Actually, Joel's version is correct. Yours *keeps* those that contain
mysite.com, removing the others.
>
I tweaked it a bit for space, and i got it working. thanks a lot both
of you. heres what my final came out to be...
$("a").each(function(){
if($(this).attr("href").match('mysite.com')===null)
{
$(this).attr('href','mysite.com/go?url=' + $
(this).attr('href')).attr('target','_b
Then I'd try $('[EMAIL PROTECTED]').filter('[EMAIL PROTECTED]')
'select all links (with hrefs) and remove those that contain
mysite.com'
o
> I want to reformat all the links that DONT point to my site.
>
>> Instead of using $('a.redir'), try using $('[EMAIL PROTECTED]')
--~--~-~--~---
To get all the links that don't point to your site, I think you could
do this:
$('a').not('[EMAIL PROTECTED]')
Joel.
On 25/07/2007, at 1:51 PM, [EMAIL PROTECTED] wrote:
Karl,
I want to reformat all the links that DONT point to my site.
On Jul 24, 11:19 pm, Karl Swedberg <[EMAIL PROTECTE
Karl,
I want to reformat all the links that DONT point to my site.
On Jul 24, 11:19 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi Justin,
>
> Instead of using $('a.redir'), try using $('[EMAIL PROTECTED]')
>
> That will select all links with "mysite.com" anywhere in the href
>
> --Karl
> ___
Hi Justin,
Instead of using $('a.redir'), try using $('[EMAIL PROTECTED]')
That will select all links with "mysite.com" anywhere in the href
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jul 24, 2007, at 10:47 PM, [EMAIL PROTECTED] wrote:
Hello,
I
Gday Justin,
>From an earlier question I wanted to see how that was done also so
created a little sample page.
http://www.subtledifference.com.au/jquery/linkout/
Thought of 3 ways, its fairly basic and not a plugin just some code.
Essentially:
$(document).ready(function(){
$("#linkout").fin
9 matches
Mail list logo