Font array and date : Font « HTML « JavaScript DHTML






Font array and date

<html>
<head>
<script language="JavaScript">
<!--
 var dateToday = new Date();
 var thisDay   = dateToday.getDay();
 var fonts     = new Array("Albertus Medium", "Times","Helvetica","Courier");
//-->
</script>
</head>
<body>
<font size="+1" face="&{ fonts[thisDay] };">
font</font>
</body>
</html>

           
       








Related examples in the same category

1.Change font size
2.Controlling FONT Object Properties