No lo veo muy útil, pero probá así:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<script>
function dame_color_aleatorio(){
hexadecimal = new Array("0","1","2","3","4","5","6","7","8","9","A", "B","C","D","E","F")
color_aleatorio = "#";
for (i=0;i<6;i++){
posarray = Math.floor(Math.random()*hexadecimal.length)
color_aleatorio += hexadecimal[posarray]
}
return color_aleatorio;
}
</script>
</head>
<body>
<form>
<input class="default" name="nombre" type="text" id="nombre" value="Pon el nombre del juego aqui"
onMouseOver="this.style.background=dame_color_aleatorio(); this.style.color=dame_color_aleatorio();"
onMouseOut="this.style.background=dame_color_aleatorio(); this.style.fontColor=dame_color_aleatorio();" />
</form>
</body>
</html>