本帖最后由 owen0510 于 2011-6-9 18:07 编辑
介于很多人说错位问题,已经修复
演示站 www.qtsir.com
废话不多说, 上图
看展示站:www.qtsir.com
第一步 发放我的顶部导航,添加方法: 全局-SEO设置-其他
- <center><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 style="width: 1280px; height: 31px">
- <div class=outer>
- <div class=left><a style="position:relative;top:3px;;"><iframe src="http://m.weather.com.cn/m/pn7/weather.htm " width="195" 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://qt.nokia.com/title-cn" target=_blank><font color=#000033>QT官网</font></A> |
- <A href="http://www.nokia.com.cn/" target=_blank><font color=#000033>NOKIA官网</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>
- </TD></TR></TBODY></TABLE></TD>
- </div></div></div></center>
复制代码
由于我屏幕是24寸宽屏 分辨率是1980 导航将被无限拉长 所以我稍微做修改
- <div id=miniNav style="width: 1280px; height: 31px">
复制代码
将上面 1280px 改成你需要的长度,我认为我长度刚刚好
第二步:侧边栏 下面的最新图片我调用的是会员相册里的最新图片!我打算给上面的banner 改成幻灯片,到时候再放出来
新幻灯片效果展示
第三步:发风格
X1.5版
|