本帖最后由 雪雨萧林 于 2011-2-20 12:01 编辑
版本:DISCUZ
在后台打开
全局
优化设置
最下方的其他头部信息:
输入代码
然后保存(保存之后页面先别关闭,防止不支持导致乱码,可以就ishi修改)
刷新网页就可以了
代码如下:(最下面的网址可以改成你自己的网址)
<STYLE type=text/css>
<!--
/* 顶部迷你导航 */
#miniNav { margin-bottom: 5px; height:25px; border-bottom:1px solid #CAD9EA; background:#F8F8F8; color:#333; text-align:center; }
#miniNav .outer { width:980px; margin:0 auto; }
#miniNav .left { float:left; }
#miniNav .right { float:right; }
#miniNav .redtxt { color:#F00; }
#miniNav span { font-family:"宋体"; color:#A1A0A0; line-height:25px; }
#miniNav a { color:#666; margin:0 3px; font-size:12px; text-decoration:none; line-height:25px; padding:1px 3px 1px 3px; }
#miniNav a:hover { color:#fff; background:#09C; }
-->
</STYLE>
<SCRIPT language=javascript type=text/javascript>
function addBookmark(title){var url=parent.location.href;if(window.sidebar){window.sidebar.addPanel(title,url,"")}else if(document.all){window.external.AddFavorite(url,title)}else if(window.opera&&window.print){return true}}
function setHome(obj,vrl){try{obj.style.behavior='url(#default#homepage)'; obj.setHomePage(vrl)}catch(e){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',vrl)}}}
</SCRIPT>
<div id=miniNav>
<div class=outer>
<div class=left><a style="position:relative;top:3px;;"><iframe src="http://m.weather.com.cn/m/pn3/weather.htm" allowtransparency="true" width="225" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe></a>
<div style="CLEAR: both"></div></div>
<div class=right><a><font color=#000033>今天是:</font>
<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>
</font>
</a>
<A > </A><A href="http://www.xthy.tk/" target=_blank><font color=#000033>网站首页</font></A> | <A href="http://http://www.xthy.tk/forum.php" target=_blank><font color=#000033>论坛</font></A> | <A href="http://www.xthy.tk/home.php" target=_blank><font color=#000033>个人家园</font></A> | <A href="[url=http://www.xthy.tk/plugin.php?id=qqfarm:qqfarm]http://www.xthy.tk/plugin.php?id=qqfarm:qqfarm[/url]" target=_blank><font color=#000033>Q版农场</font></A> | <A href="http://www.xthy.tk" target=_blank><font color=#000033>网站帮助</font></A> | <A onclick=setHome(this,window.location) href="javascript:;" target=_top>设为首页</A><SPAN>|</SPAN><A onclick=addBookmark(document.title); href="javascript:;" target=_top><font color=#ff0000>加入收藏</font></A></div></div></div>
|