I have a question: How do you style the various components of the
anchor tag? I am doing it this way:

$$('a:link,a:visited').each(function(link){     //links
        link.setStyle({ color: '#'+$F('cp4_Hex') });
});
$$('a:hover').each(function(link){      //links
        link.setStyle({ color: '#'+$F('cp5_Hex') });
});


And it kind of works--I see a style change--but even though I declare
the a:hover, a:link, or what have you, all the anchor tags are given
the last color, in this case, :hover.

How does one do this correctly?

Amiri
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to