Automatically add a monthly tip to your page

The message below in blue is being created by the program below. It recognizes the current month and then posts the message that you decide on. The message will change each month automatically.


March's tip of the month

1) Add the script below in between your <head> tags. Change the messages below to the message you want posted each month.



كود PHP:
<html>

<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
title>New Page 2</title>


<
SCRIPT LANGUAGE="JavaScript">
<!-- 
today = new Date();
= new Array();
var 
monthlytip=today.getMonth();
m[0]="Januarys tip: this script was a pain to write";
m[1]="February's tip.............. type in anything";
m[2]="March's tip of the month in this year";
m[3]="April's tip of the month...";
m[4]="May's tip";
m[5]="June's tip";
m[6]="July's tip.....";
m[7]="August's tip....";
m[8]="September's tip";
m[9]="October's tip";
m[10]="November's tip";
m[11]="December's tip: stay warm this month";
function 
writetip(){
document.write(m[monthlytip]);
}
//-->
</script>


</head>

<body>

<font color=blue>
<h2>
<script>
writetip();
</script>
</h2>
</font>

</body>

</html> 


2) Place this on the page where you want the message to appear. The message will change automatically each month


كود PHP:
<font color=blue><h2>
<
script>
writetip();
</script>
</h2></font> 
</div>