写新文章
脚本说明:
第一步:把如下代码加入<head>区域中
<script LANGUAGE="JavaScript">
<!--
function isnew(maxdays, addDate){
var oldDate = new Date(addDate);
var newDate = new Date();
var maxdaysold = maxdays*24*60*60*1000;
var psj=0;
if ((newDate.getTime()-oldDate.getTime()) <= maxdaysold) {
document.write("<img src=pic.jpg width=400 height=40 ALIGN=MIDDLE Alt='New'>");
}
}
//-->
</script>
<script LANGUAGE="JavaScript">
<!--
isnew(7,"05/14/2000")
//-->
</script>