Topic awaiting preservation: javascript super-rookie. |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: Washington DC |
posted 11-21-2005 20:17
Hello, code: var LowBgColor='000000'
code: .button {background-color:#56A7A7}
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-21-2005 21:49
This actually isn't very easy. Unfortunately when you don't explicitly set a CSS value via Javascript or an inline style, when you access the style via Javascript the variable is blank so: |
Paranoid (IV) Inmate From: France |
posted 11-21-2005 22:37
You should try something like : Simon Willison : getElementBySelector or Dean Edwards : cssQuery, to get a collection of objects matching a CSS Selector, then pick one of them and pick its style.backgroundColor property. |
Maniac (V) Inmate From: Washington DC |
posted 12-02-2005 20:48
Thanks guys. |