本帖最后由 勿忘我科技 于 2011-8-7 15:57 编辑
演示地址:http://www.wuwangwo.cc/
演示图片:
代码:
- <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="135" 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://mall.wuwangwo.cc/" target=_blank><font color=#FF0000>团购</font></A> |
- <A href="http://ask.wuwangwo.cc/" target=_blank><font color=#000033>问吧</font></A> |
- <A href="http://baike.wuwangwo.cc/" target=_blank><font color=#000033>百科</font></A> |
- <A href="http://wk.wuwangwo.cc/" target=_blank><font color=#000033>威客</font></A> |
- <A href="http://hotel.wuwangwo.cc/" target=_blank><font color=#000033>酒店预定</font></A> |
- <A href="http://dh.wuwangwo.cc/" target=_blank><font color=#000033>网址导航</font></A> |
- <A href="http://tool.wuwangwo.cc/" target=_blank><font color=#000033>查询工具</font></A> |
- <A href="http://www.taotuanle.com/" target=_blank><font color=#FF0000>团购导航</font></A> |
- <A href="http://www.wuwangwo.cc/ico.php" target=_blank>桌面捷径</font></A> |
- </TD></TR></TBODY></TABLE></TD>
- </div></div></div>
复制代码
使用方法:
1)上面文字和链接自行修改,然后把以上代码添加到后台---全局---SEO设置---其他---其他头部信息:
2)图片文件附件解压后上传到自己的空间,路径修改设置,我是在images/文件夹下面....
3)用记事本打开ico文件修改,把网址和网名改成自己的
ico.rar (326 Bytes, 下载次数: 0)
昨天 00:28 上传
下载次数: 0
官方下载:http://www.wuwangwo.cc/forum.php?mod=viewthread&tid=50615&extra=page%3D1
4)桌面捷径文件看附件,解压修改链接后把文件上传到论坛根目录
昨天 00:28 上传
下载次数: 0
注意事项:请自己修改当中代码网址为自己的.
|