![]() Topic awaiting preservation: javascript super-rookie. (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Washington DC |
![]() Hello, code: var LowBgColor='000000'
code: .button {background-color:#56A7A7}
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() 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 |
![]() 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 |
![]() Thanks guys. |