nayen — 2012-12-25T07:40:22-05:00 — #1
Is it possible to have something like the following?
document.[B]VARIABLE1[/B].style.[B]VARIABLE2[/B] = (some color);
Thanks for any ideas.
felgall — 2012-12-25T16:01:47-05:00 — #2
document[variable1].style[variable2] = some_color;
nayen — 2012-12-26T01:10:41-05:00 — #3
Thanks for the reply. I also tried that before but it didn't work because both "document" and "style" are not arrays as far as I know. Anyway, I solved this by replacing my code with jQuery.