I can and do define those rules in CSS, but I want to overwrite them
to create a "live dynamic preview" of CSS changes, before I save those
changes to CSS. So Prototype has no access to those classes. OK.

Amiri


On May 31, 6:47 am, kangax <[EMAIL PROTECTED]> wrote:
> :hover, :link and :visited pseudo classes are not supported.
> Why can't you just define these rules in css?
>
> - kangax
>
> On May 30, 7:07 pm, Amiri <[EMAIL PROTECTED]> wrote:
>
> > 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 [email protected]
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