Lesson 5 code mistake..
2 posts Page 1 of 1
Lesson 5 code mistake..
The example at the bottom of the page in Lesson 5 has a few errorsThis is the correct version:
for ($intRed=0; $intRed<=255; $intRed=$intRed+30) {
for ($intGreen=0; $intGreen<=255; $intGreen=$intGreen+30) {
for ($intBlue=0; $intBlue<=255; $intBlue=$intBlue+30) {
$strColor = "rgb(" . $intRed . "," . $intGreen . "," . $intBlue . ")";
echo "<span style='color:" . $strColor . "'> " . $strColor . " </span>";
}
}
}
Re: Lesson 5 code mistake..
Thanks! It has been corrected.- Andreas, HTML.net
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Page 1 of 1