5 pts.
 I am new to JavaScript. How can this be done properly?
function setColors(e){ e.style.backgroundColor='red'; e.style.borderColor='green'; e.style.color='blue'; } function getColors{ var E=new Array( document.getElementById('a'), document.getElementById('b'), document.getElementById('c') ); for(i=0;i<=E.length;i++) setColors(E[i]); }

Software/Hardware used:
ASKED: July 12, 2009  2:54 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _