I disagree with Bram,

@bram: As web developers we should aim for progressive enhancement
only, meaning that javascript shouldn't be used for rollovers if there
is a javascript-free alternative (:hover, in this instance).

I have never used document.styleSheets but it may be the way forward,
alternatively add an event to the rollover element that observes
'mouseover', and getStyle() from there. It's a bit backwards in coming
forwards, but will solve your problem.

P.S., I've never done this myself, but am looking into
document.styleSheets now.

On Apr 18, 1:32 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hmm, I think the "easiest" way to do this would be rewriting the hover
> effect with JS... Observe all links, if the mouse moves over them, add
> a class (like .hover)... that way, it'd be easy getting the styles
> from the class...
>
> On 17 apr, 14:17, Lox <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > How can I get the styles of the :hover state of a link defined in a
> > css stylesheet?
>
> > Is it possible?
>
> > Regards
--~--~---------~--~----~------------~-------~--~----~
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