|
一、固定的:<a href="http://wpa.qq.com/msgrd?V=1&;Uin=279498972&Site=wwy2.cn&Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:279498972:4" alt="QQ"></a>把以上的这段代码插入到网页你要放的位置就好了,其中的QQ号279498972 是我的。你可以把它替换成自己的。
二、悬浮的(加上时间的):<SCRIPT language=Javascript1.2>
<!--
function show() {
if(!document.layers && !document.all) return;
var d = new Date();
var iYear = d.getYear()
var iMonth = d.getMonth()
var iDay = d.getDate()
var sWeek = d.getDay()
var sHour = d.getHours()
var sMinute = d.getMinutes()
var sSecond = d.getSeconds()
if(sWeek == 0) sWeek = "<font color=#ffffff>星期天</font>";
if(sWeek == 1) sWeek = "星期一";
if(sWeek == 2) sWeek = "星期二";
if(sWeek == 3) sWeek = "星期三";
if(sWeek == 4) sWeek = "星期四";
if(sWeek == 5) sWeek = "星期五";
if(sWeek == 6) sWeek = "<font color=#ffffff>星期六</font>";
if(sHour <= 9) sHour = "0" + sHour;
if(sMinute <= 9) sMinute = "0" + sMinute;
if(sSecond <= 9) sSecond = "0" + sSecond;
sClock = " " + iYear + "年" + (iMonth + 1) + "月" + iDay + "日 " + sWeek
+ " " + sHour + ":" + sMinute + ":" + sSecond;
if(document.layers) {
document.layers.clock.document.write(sClock);
document.layers.clock.document.close();
}
else if(document.all)
clock.innerHTML = sClock;
setTimeout("show()", 1000);
}
show();
//-->
</SCRIPT>
将以上代码插入网页即可
本文由我就是爱flash网(http//www.5942flash.com)站长qingfengyun分享,转载请注明出处,谢谢
|
评分
-
查看全部评分
|