Topic awaiting preservation: Retrieve background url from a css element. (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Mexico |
posted 09-17-2003 20:50
My first assumption would be that it was located this way: |
Bipolar (III) Inmate From: Berlin (almost) |
posted 09-17-2003 21:02
If you only want to set a new background image (which is what you're trying to do if I understood correctly ) you can do that by saying: |
Paranoid (IV) Inmate From: Northumberland, England |
posted 09-18-2003 03:09
document.getElementById(id).style.background - this would be a string of the whole background properties |
Paranoid (IV) Inmate From: Mexico |
posted 09-18-2003 04:26
Thanks so much for the pointers. It works like candy (is that the correct expression?). |
Bipolar (III) Inmate From: schillmania.com |
posted 09-21-2003 03:56
I would recommend changing the class name, then you can be lazy and do all the work in CSS .. plus it may save repetition in some cases too. |