Random hex css color

<span style=" <?php mhs_random_hex_color_css() ?>">HI</span>

function mhs_random_hex_color_css(){ echo 'color:#' . sprintf("%02X%02X%02X",mt_rand(0,255),mt_rand(0,255),mt_rand(0,255)) . ';'; }

0 Comments

You must be logged in to post a comment.