演示地址学生花园网我把这个头部导航修改了一下,<meta name="baidu_union_verify" content="22bd3915c988032a6423c591e33c5e03"><Script Language="JavaScript">
var timedate= new Date("may 8 ,2011");
var times= "母亲节";
var now = new Date("may 6,2011");
var date = timedate.getTime("24:00") - now.getTime("6:22");
var time = Math.floor(date / (1000 * 60 * 60 * 24));
if (time >= 0)
document.write( "现在离"+times+"还有: "+time +"天")
<script type="text/javascript">
function addFav(){ // 加入收藏夹
if (document.all) {
window.external.addFavorite(window.location.href, document.title);
} else if (window.sidebar) {
window.sidebar.addPanel(document.title, window.location.href, "");
}
}
</script>
<script type="text/javascript">
function setHomepage(){ // 设为首页
if (document.all)
{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(' http://www.stugarden.com');
}
else if (window.sidebar)
{
if(window.netscape)
{
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch (e)
{
alert("该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");
}
}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
prefs.setCharPref('browser.startup.homepage',' http://www.stugarden.com');
}
}
</script>
<CENTER><TABLE border=0 cellSpacing=0 cellPadding=0 width=970 align=center>
<TBODY>
<TR>
<TD width=5><IMG src="http://www.wuwangwo.cc/images/wu_01.jpg" width=5 height=27></TD>
<TD background=http://www.wuwangwo.cc/images/wu_02.jpg width=771>
<TABLE style="FONT-SIZE: 12px" border=0 cellSpacing=0 cellPadding=0 width=960>
<TBODY>
<TR>
<TD width=555>今天是<SCRIPT language=JavaScript> function Year_Month(){
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '';
if (now.getDay() == 0) cl = '';
if (now.getDay() == 6) cl = '';
return(cl + yy + '年' + mm + '月');
}
function Date_of_Today(){
var now = new Date();
var cl = '';
if (now.getDay() == 0) cl = '';
if (now.getDay() == 6) cl = '';
return(cl + now.getDate() + '日');
}
function Day_of_Today(){
var day = new Array();
day[0] = "星期日";
day[1] = "星期一";
day[2] = "星期二";
day[3] = "星期三";
day[4] = "星期四";
day[5] = "星期五";
day[6] = "星期六";
var now = new Date();
var cl = '';
if (now.getDay() == 0) cl = '';
if (now.getDay() == 6) cl = '';
return(cl + day[now.getDay()] + '');
}
function CurentTime(){
var now = new Date();
var hh = now.getHours();
var mm = now.getMinutes();
var ss = now.getTime() % 60000;
ss = (ss - (ss % 1000)) / 1000;
var clock = hh+':';
if (mm < 10) clock += '0';
clock += mm+':';
if (ss < 10) clock += '0';
clock += ss;
return(clock);
}
function refreshCalendarClock(){
document.all.calendarClock1.innerHTML = Year_Month();
document.all.calendarClock2.innerHTML = Date_of_Today();
document.all.calendarClock3.innerHTML = Day_of_Today();
document.all.calendarClock4.innerHTML = CurentTime();
}
document.write('<span id="calendarClock1"> </span>');
document.write('<span id="calendarClock2"> </span> ');
document.write('<span id="calendarClock3"> </span> ');
document.write('<span id="calendarClock4"> </span>');
setInterval('refreshCalendarClock()', 1000);
// --></SCRIPT>
<script language="JavaScript">
var mess1="";
document.write("<font color='#2E9AFE'>")
day = new Date( )
hr = day.getHours( )
if (( hr >= 0 ) && (hr <= 4 ))
mess1=" 深夜了,注意身体,该休息了,白天再做吧!"
if (( hr >= 4 ) && (hr < 7))
mess1=" 清晨好,您好勤劳啊!这麽早就上网? "
if (( hr >= 7 ) && (hr < 12))
mess1=" 早上好,一天之际在于晨,又是美好的一天!"
if (( hr >= 12) && (hr <= 13))
mess1=" 该吃午饭啦!有什么好吃的?您中午有休息吗?"
if (( hr >= 13) && (hr <= 17))
mess1=" 下午好!外面天气好吗?白云捎来朋友的祝福。"
if (( hr >= 17) && (hr <= 18))
mess1=" 太阳落山了!快看看夕阳吧!就不必了 ^_^"
if (( hr >= 18) && (hr <= 19))
mess1=" 晚上好,今天心情好吧,这给您的感觉不错吧!"
if (( hr >= 19) && (hr <= 21))
mess1=" 常来这逛逛,不但可以学习,还可以娱乐?"
if (( hr >= 22) && (hr <= 23))
mess1=" 这么晚了,还逛?睡吧!不要影响明天工作!"
document.write(mess1)
document.write("</font>")
</script></TD>
<TD width=62><A onclick=addFav() href="javascript:void(0)">添加收藏</A></TD>
<TD width=62><A onclick=setHomepage() href="javascript:void(0)">设为首页</A></TD>
<TD width=62><A href="http://www.wuwangwo.cc/ico.php" target=_blank>桌面捷径</A></TD></TR></TBODY></TABLE></TD>
<TD width=5><IMG alt="" src="http://www.wuwangwo.cc/images/wu_03.jpg" width=5 height=27></TD></TR></TBODY></TABLE></CENTER> |