trollacious
Programmer
I just downloaded and installed Firefox last night. Doing some design this morning, I ran into a problem with Firefox (in IE it works fine) not using the value returned from a function, but the actual string that is the function call.
The actual code in the function is, with onediv retrieved with document.getElementById(divid):
var newcolor = rgb(redfrom, greenfrom, bluefrom);
onediv.style.color = newcolor;
alert(newcolor) immediately after these 2 lines produces the correct result, but alert(onediv.style.color) produces the string rgb(9, 9, 9), where 9 is the value of each of the variables passed to the rgb() function.
Any ideas what the cause of this is and what the solution is?
Lee
The actual code in the function is, with onediv retrieved with document.getElementById(divid):
var newcolor = rgb(redfrom, greenfrom, bluefrom);
onediv.style.color = newcolor;
alert(newcolor) immediately after these 2 lines produces the correct result, but alert(onediv.style.color) produces the string rgb(9, 9, 9), where 9 is the value of each of the variables passed to the rgb() function.
Any ideas what the cause of this is and what the solution is?
Lee