"; for ($i=0; $i" . $sentenceparts[$i] . ""; } else { $selbit .= ""; } } else { $selbit .= ""; } } $selbit .= ""; $cols = array('lime','black','blue','purple','navy','teal','fuchsia','olive','maroon','gray','green'); $colpick = rand(0, (sizeof($cols) - 1)); $mycol = $cols[$colpick]; echo " Canvas HTML Element Auxiliary Verb Board Game Tutorial ... RJM Programming ... January 2015 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element