为了方便大家,我把到现在为止用过的代码全部公开了,不要问我每句话都是什么意思哦,我也不太懂啦呵呵
/*标题栏*/
.partHeader{background-image:url(http://cherryho.105.tofor.com/ss/line/line11.gif);height:27px;}
html{scrollbar-face-color:#DDDDDD;scrollbar-highlight-color:#DDDDDD;scrollbar-shadow-color:#DDDDDD;scrollbar-3dlight-color:#CCCCCC;scrollbar-arrow-color:#FFFFFF;scrollbar-track-color:#FBFBFB;scrollbar-darkshadow-color:#CCCCCC;scrollbar-base-color:#DDDDDD;}
body{
background:url(http://fo.qq.com/download/images/w13_1024.jpg) right top no-repeat
fixed;cursor:url(http://imgcache.qq.com/qzone/item/orig/7/4247.ani);
}#bgAll{filter:alpha(opacity=40);}#banner{filter:alpha(opacity=0);}
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timevalue = " " + ((hours >12) ? hours -12 :hours)
timevalue += ((minutes < 10) ? ":0" : ":") + minutes
timevalue += ((seconds < 10) ? ":0" : ":") + seconds
timevalue += (hours >= 12) ? " PM" : " AM"
document.clock.face.value = timevalue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
function startclock () {
stopclock();
showtime();}