包含就可以直接用
document.write('<div id="SZ_floater" style="cursor:hand;right:10px;top:20px;width:80px;height:66px;position:absolute;">');
document.write('<table align=center border=0 cellspacing=0 cellpadding=0 bordercolor="#3C7796">');
document.write('<tr><td align="center" width="60" height="1" bgcolor="#2369DE"></td></tr></table>');
document.write('<table align=center border=1 cellspacing=0 cellpadding=0 bordercolor="#3C7796">');
document.write('<tr><td align="center" width="60" height="66">');
document.write('<font id="calendarClock1" style="font-family:Tahoma; font-size: 8pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock2" style="font-family:Arial;font-size:14pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock3" style="font-family:Tahoma; font-size: 8pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock4" style="font-family:Tahoma; font-size: 8pt;line-height:120%"><b> </b></font>');
document.write('</td></tr></table></DIV>');function KB_heartBeat() {
var diffX,diffY,percent;
if(IE4) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NN4) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != KB_lastScrollY) {
percent = 0.1* (diffY - KB_lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.KB_floater) document.all.KB_floater.style.pixelTop += percent;
if(NN4 && document.KB_floater) document.KB_floater.top += percent;
KB_lastScrollY = KB_lastScrollY + percent;
}
if(diffX != KB_lastScrollX) {
percent = 0.1 * (diffX - KB_lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.KB_floater) document.all.KB_floater.style.pixelLeft += percent;
if(NN4 && document.KB_floater) document.KB_floater.left += percent;
KB_lastScrollX = KB_lastScrollX + percent;
}
}
function SZ_heartBeat() {
var diffX,diffY,percent;
if(IE4) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NN4) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != SZ_lastScrollY) {
percent = 0.1* (diffY - SZ_lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.SZ_floater) document.all.SZ_floater.style.pixelTop += percent;
if(NN4 && document.SZ_floater) document.SZ_floater.top += percent;
SZ_lastScrollY = SZ_lastScrollY + percent;
}
if(diffX != SZ_lastScrollX) {
percent = 0.1 * (diffX - SZ_lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.SZ_floater) document.all.SZ_floater.style.pixelLeft += percent;
if(NN4 && document.SZ_floater) document.SZ_floater.left += percent;
SZ_lastScrollX = SZ_lastScrollX + percent;
}
}
function refreshCalendarClock() {
if(IE4) {
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();
}
if(NN4) {
document.layers.calendarClock1.innerHTML = Year_Month();
document.layers.calendarClock2.innerHTML = Date_of_Today();
document.layers.calendarClock3.innerHTML = Day_of_Today();
document.layers.calendarClock4.innerHTML = CurentTime();
}
}function Year_Month() {
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '<font color="#3C7796">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + yy + '年' + mm + '月</font>');
}
function Date_of_Today() {
var now = new Date();
var cl = '<font color="#3C7796">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + now.getDate() + '</font>');
}
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 = '<font color="#3C7796">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + day[now.getDay()] + '</font>');
}
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);
}
var IE4=(document.all)?1:0
var NN4=(document.layers)?1:0
var KB_lastScrollX = 0, KB_lastScrollY = 0, SZ_lastScrollX = 0, SZ_lastScrollY = 0;
window.onerror = new Function("return true;");
window.setInterval('KB_heartBeat()', 25); window.setInterval("SZ_heartBeat()", 25); window.setInterval('refreshCalendarClock()', 1000);
dealinnerHTML();
document.write('<div id="SZ_floater" style="cursor:hand;right:10px;top:20px;width:80px;height:66px;position:absolute;">');
document.write('<table align=center border=0 cellspacing=0 cellpadding=0 bordercolor="#3C7796">');
document.write('<tr><td align="center" width="60" height="1" bgcolor="#2369DE"></td></tr></table>');
document.write('<table align=center border=1 cellspacing=0 cellpadding=0 bordercolor="#3C7796">');
document.write('<tr><td align="center" width="60" height="66">');
document.write('<font id="calendarClock1" style="font-family:Tahoma; font-size: 8pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock2" style="font-family:Arial;font-size:14pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock3" style="font-family:Tahoma; font-size: 8pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock4" style="font-family:Tahoma; font-size: 8pt;line-height:120%"><b> </b></font>');
document.write('</td></tr></table></DIV>');function KB_heartBeat() {
var diffX,diffY,percent;
if(IE4) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NN4) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != KB_lastScrollY) {
percent = 0.1* (diffY - KB_lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.KB_floater) document.all.KB_floater.style.pixelTop += percent;
if(NN4 && document.KB_floater) document.KB_floater.top += percent;
KB_lastScrollY = KB_lastScrollY + percent;
}
if(diffX != KB_lastScrollX) {
percent = 0.1 * (diffX - KB_lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.KB_floater) document.all.KB_floater.style.pixelLeft += percent;
if(NN4 && document.KB_floater) document.KB_floater.left += percent;
KB_lastScrollX = KB_lastScrollX + percent;
}
}
function SZ_heartBeat() {
var diffX,diffY,percent;
if(IE4) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NN4) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != SZ_lastScrollY) {
percent = 0.1* (diffY - SZ_lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.SZ_floater) document.all.SZ_floater.style.pixelTop += percent;
if(NN4 && document.SZ_floater) document.SZ_floater.top += percent;
SZ_lastScrollY = SZ_lastScrollY + percent;
}
if(diffX != SZ_lastScrollX) {
percent = 0.1 * (diffX - SZ_lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
if(percent <=0) percent = Math.floor(percent);
if(IE4 && document.all.SZ_floater) document.all.SZ_floater.style.pixelLeft += percent;
if(NN4 && document.SZ_floater) document.SZ_floater.left += percent;
SZ_lastScrollX = SZ_lastScrollX + percent;
}
}
function refreshCalendarClock() {
if(IE4) {
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();
}
if(NN4) {
document.layers.calendarClock1.innerHTML = Year_Month();
document.layers.calendarClock2.innerHTML = Date_of_Today();
document.layers.calendarClock3.innerHTML = Day_of_Today();
document.layers.calendarClock4.innerHTML = CurentTime();
}
}function Year_Month() {
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '<font color="#3C7796">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + yy + '年' + mm + '月</font>');
}
function Date_of_Today() {
var now = new Date();
var cl = '<font color="#3C7796">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + now.getDate() + '</font>');
}
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 = '<font color="#3C7796">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + day[now.getDay()] + '</font>');
}
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);
}
var IE4=(document.all)?1:0
var NN4=(document.layers)?1:0
var KB_lastScrollX = 0, KB_lastScrollY = 0, SZ_lastScrollX = 0, SZ_lastScrollY = 0;
window.onerror = new Function("return true;");
window.setInterval('KB_heartBeat()', 25); window.setInterval("SZ_heartBeat()", 25); window.setInterval('refreshCalendarClock()', 1000);
dealinnerHTML();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货