[jQuery] Re: $('a:link') Selector?

2009-10-17 Thread mkmanning
A couple things. First off, the syntax you're using won't get you the anchor's color: $('a:link',this).css('color'); This is a shortcut for: $(this).find('a:link').css('color') which basically means find the anchors inside this anchor. If you want the anchor's original color, just use: $(this

[jQuery] Re: $.( 'a:link' )

2008-02-23 Thread [EMAIL PROTECTED]
Ahh - thanks, Klaus :( I did find myself starting on several more lines of jQuery to deal with it, and then thought What am I doing???! CSS was invented for a reason ;) I appreciate your help. It's so hard to find out what Javascript *can't* do! Cheers, Chery On Feb 23, 10:12 am, Klaus Har

[jQuery] Re: $.( 'a:link' )

2008-02-23 Thread Klaus Hartl
On Feb 23, 1:55 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > That was a good idea, Klaus - but it's having the same effect as plain > "a".  As the script's written it inline, it overrides the visited, > hover & active styles. > > Surely there must be a way round this, without adding yet an

[jQuery] Re: $.( 'a:link' )

2008-02-22 Thread [EMAIL PROTECTED]
That was a good idea, Klaus - but it's having the same effect as plain "a". As the script's written it inline, it overrides the visited, hover & active styles. Surely there must be a way round this, without adding yet another stylesheet ... Even if jQuery hasn't got it covered, would it be poss

[jQuery] Re: $.( 'a:link' )

2008-02-22 Thread Klaus Hartl
On Feb 23, 1:05 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This has to be obvious - but I can't find it! I'm trying to have a > script restyle the a:links. Using the CSS name (which is, precisely, > #nav a:link) doesn't get a result. > > It does if I take the :link part off, but that ove