چىسلا

2015-09-20 09:28:47 -0400
<script language="JavaScript">
var urodz= new Date("01/31/2014");
//节日的日期,月/日/年
var s="春节";
//节日名称
var now = new Date();
var ile = urodz.getTime() - now.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24))+1;
if (dni > 1)
document.write("<span class='festival'>♥距离"+s+"还有<b style='color:red;'>"+dni +"</b>天⊙_⊙</span>")
else if (dni == 1)
document.write("<span class='festival'>♥明天就是"+s+"啦↖(^ω^)↗</span>")
else if (dni == 0)
document.write("<span class='red'>♥祝你"+s+"快乐(*^_^*)</span>")
else
document.write("<span class='festival'>♥"+s+"已经过去了哦(╯3╰)</span>");
</script>
<style>
.festival{
color:green;border-bottom:1px dashed grey;
}
.red{
color:red;border-bottom:1px dashed yellow;
}
</style>

«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N