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
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
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
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
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
5 matches
Mail list logo