|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
由于ASP提供的是一对多的服务,所以用户的一些特殊需求很难得到满足。<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN">
<HTML><HEAD><TITLE>同砚诞辰提示</TITLE>
<STYLEtype=text/CSS>BODY{
FONT-FAMILY:"宋体";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"宋体"
}
</STYLE>
<METAcontent="text/html;charset=gb2312"http-equiv=Content-Type>
<SCRIPTlanguage=JavaScript>
<!--
functionbirthday(year,month,date,person){
this.year=year
this.month=month
this.date=date
this.person=person
}
functionbirthdaylist(){
}
blist=newbirthdaylist()
blist[0]=newbirthday(1933,2,14,"abc")
blist[1]=newbirthday(1933,12,17,"efs")
//下面增加你伴侣的诞辰列表
varnow=newDate()
today=newDate(now.getYear(),now.getMonth(),now.getDate())//today0:00:00
functiondaysFromToday(sdate){
returnMath.round((sdate.getTime()-today.getTime())/(24*60*60*1000))
}
functionwriteNextBirthday(list){
vardaysToClosest=888
varclosest
for(variinlist){
thisDate=newDate(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>明天["+list[closest].person+"]"+"["+(today.getYear()-list[closest].year)+"]岁年夜寿!
祝你诞辰康乐^0^</B>")
elseif(daysToClosest==1)
document.write("今天["+list[closest].person+"]将过["+(today.getYear()-list[closest].year)+"]岁诞辰!")
else
document.write("你比来要过诞辰的伴侣是["+list[closest].person+"]在["+daysToClosest+"]天后。")
}
//endhiding-->
</SCRIPT>
<METAcontent="MSHTML5.00.2614.3500"name=GENERATOR></HEAD>
<BODYbgColor=#FFFFFF>
<CENTER>
<fontcolor="red"><fontcolor="#FF3333"size="5">同砚诞辰提示</font></font><FONTcolor=redface=隶书
size=6><br>
</FONT><FONTcolor=redface=隶书size=6></FONT>
</CENTER>
<divalign="center">
<hrsize="1"color="#000000"noshade>
如今的日期工夫是:
<scriptlanguage=JavaScript>
today=newDate();
functioninitArray(){
this.length=initArray.arguments.length
for(vari=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]}
vard=newinitArray(
"日曜日",
"礼拜一",
"礼拜二",
"礼拜三",
"木曜日",
"礼拜五",
"礼拜六");
document.write(
"<fontcolor=##000000style=font-size:9pt;font-family:宋体>",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日",
d[today.getDay()+1],
"</font>");
</script>
<br>
<br>
</div>
<CENTER>
<tablewidth="502"border="1"cellspacing="0"cellpadding="0"bordercolordark="#FFFFFF"
bordercolor="#000000">
<trbgcolor="#CCFFCC">
<td>
<divalign="center"><fontcolor="#FF3333"></font><fontcolor="#FF3333"size="4">年夜
家注意了</font></div>
</td>
</tr>
<tr>
<td>
<divalign="center">
<scriptlanguage=JavaScript>
<!--
writeNextBirthday(blist)
//-->
</script>
</div>
</td>
</tr>
</table>
<br>
---97盘算机---
</CENTER>
</BODY></HTML>
源代码保护方面其实现在考虑得没那么多了..NET也可以反编译.ASP写得复杂的话别人能看得懂的话.他也有能力自己写了.这方面担心的倒不太多.纵观现在网上可以下载的那些所谓BBS还有什么网站等等的源代码 |
|