ASP Birthday Automatic Reminder Applet
Last Update:2017-02-28
Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<HTML><HEAD><TITLE> Classmate Birthday Reminder </TITLE>
<style Type=text/css>body {
Font-family: "The song Body"; font-size:9pt; margin-left:0px; margin-right:0px; margin-top:0px
}
A
Color:black; font-size:9pt; font-weight:400; Text-decoration:none
}
a:hover {
color:red; font-size:9pt; font-weight:400; Text-decoration:underline
}
a:active {
COLOR: #ff0033; Cursor:hand; Font:9pt "Song Body"
}
</STYLE>
<meta content= "text/html; charset=gb2312 "http-equiv=content-type>
<script language=javascript>
<!--
function Birthday (Year,month,date,person) {
This.year=year
This.month=month
This.date=date
This.person=person
}
function Birthdaylist () {
}
Blist=new birthdaylist ()
blist[0]= New Birthday (1933,2,14, "abc")
blist[1]= New Birthday (1933,12,17, "EFS")
Add your friend's birthday list above
var now=new Date ()
Today=new Date (Now.getyear (), Now.getmonth (), now.getdate ())//Today 0:00:00
function Daysfromtoday (sdate) {
Return Math.Round ((Sdate.gettime ()-today.gettime ())/(24*60*60*1000)
}
function Writenextbirthday (list) {
var daystoclosest=888
var closest
for (var i in list) {
Thisdate=new Date (Today.getyear (), list[i].month-1,list[i].date)
if (Daysfromtoday (thisdate) <0)
Thisdate.setyear (Today.getyear () +1)
if (Daysfromtoday (thisdate) <daystoclosest) {
Daystoclosest=daysfromtoday (thisdate)
Closest=i
}
}
if (daystoclosest==0)
document.write ("<B> Today [" +list[closest].person+ "]" + "[" + (Today.getyear ()-list[closest].year) + "] Birthday!
Happy Birthday to you ^0^</b> ")
else if (daystoclosest==1)
document.write ("Tomorrow [" +list[closest].person+ "] will be over [" + (Today.getyear ()-list[closest].year) + "] Birthday!")
Else
document.write ("Your recent birthday friend is [" +list[closest].person+ "] after [" +daystoclosest+ "] days. ")
}
End Hiding-->
</SCRIPT>
<meta content= "MSHTML 5.00.2614.3500" name=generator><body bgcolor= #FFFFFF >
<CENTER>
<font color= "Red" ><font color= "#FF3333" size= "5" > Classmate Birthday Reminder </font></font><font color=red Face= Official Script
Size=6><br>
</FONT> <font color=red face= official script size=6> </FONT>
</CENTER>
<div align= "center" >
<HR size= "1" color= "#000000" noshade>
Now the date time is:
<script language=javascript>
Today=new Date ();
function Initarray () {
This.length=initarray.arguments.length
for (Var i=0;i<this.length;i++)
This[i+1]=initarray.arguments[i]}
var d=new initarray (
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday");
document.write (
"<font color=# #000000 style= ' font-size:9pt;font-family: Song body ' > ',
Today.getyear (), "year",
Today.getmonth () +1, "Month",
Today.getdate (), "Day",
D[today.getday () +1],
"</font>");
</script>
<br>
<br>
</div>
<CENTER>
<table width= "502" border= "1" cellspacing= "0" cellpadding= "0" bordercolordark= "#FFFFFF"
Bordercolor= "#000000" >
<tr bgcolor= "#CCFFCC" >
<td>
<div align= "center" ><font color= "#FF3333" ></font><font color= "#FF3333" size= "4" >
Home Note </font></div>
</td>
</tr>
<tr>
<td>
<div align= "center" >
<script language=javascript>
<!--
Writenextbirthday (blist)
-->
</script>
</div>
</td>
</tr>
</table>
<br>
---97 Computer---
</CENTER>
</BODY></HTML>