<html>
<head>
<title> Random </title>
<script type="text/javascript" language="JavaScript">
var typeFont = new Array ( "cooper","Fixedsys","Edwardian Script ITC", "Gill Sans MT", "Kozuka Gothic Pro", "Lucida Sans", "Adobe Gothic Std", "Adobe Naskh", "Algerian","Arial Unicode MS");
function font()
{
head6.style.fontFamily = typeFont[ Math.floor( Math.random * 10 ) ];
}
</script>
</head>
<body>
<center>
<h1 onmouseover="font()" onmouseout="font" id="head6" > this is the text </h1>
</center>
</body>
i am trying to change the font every time the mouse is over o out and this function whit head6.style.fontFamily = typeFont[3] but its doesnt whit the array. Thank you.
Aucun commentaire:
Enregistrer un commentaire