i have some problem with rgb. i am writing a color selector , 3 sliders demonstrate 3 color , red and green and blue , then the mix color appears in a div named 'result' in the end of page. consider i have 3 variables which indicates 3 magnitude for r , g , and b. and this is my code :
Expand|Select|Wrap|Line Numbers
- document.getElementById("result").style.backgroundColor = 'rgb(r,g,b)'
Expand|Select|Wrap|Line Numbers
- document.getElementById("result").style.backgroundColor = 'rgb(10,10,10)'