On 1/15/07, Daniel Eben Elmore <[EMAIL PROTECTED]> wrote:

The Element.getStyle returns color values as RGB, I don't understand why and
would really like a hex value instead. Do I have to convert it myself
somehow?

Different browsers may return different formats. I think that in IE if
the background is set to "green" then currentStyle will return
"green". If the background is set to hex then hex will be returned. In
Firefox it will return RGB in both cases, I believe.

Peter
--
JavaScript for Rails: http://forkjavascript.org

--~--~---------~--~----~------------~-------~--~----~
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