繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
標題:
[版型教學]
头部导航和logo旁导航代码 仿独立
[打印本頁]
作者:
Xclub
時間:
2011-5-17 10:08
標題:
头部导航和logo旁导航代码 仿独立
预览图片:
</script>
<script type="text/javascript">
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active";
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal";
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
}
}</script>
<div style="background:#ffffff url('http://mm.a.5d6d.com/userdirs/2/c/8481/attachments/month_1008/1008091328df3b0c22c0e7395d.gif') repeat-x 50% top;
border-bottom : 2px solid #cccccc; FONT-SIZE: 12px; LINE-HEIGHT: 24px; HEIGHT: 24px;">
<div style="margin-left:5px;float:left">
<tr>
<td><p align="center">
<font style="color:#000;"><script language=Javascript type=text/Javascript>var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate=new Date();
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getYear();
year=(myyear > 200) ? myyear : 1900 + myyear;
if(myweekday == 0)
weekday=" 星期日 ";
else if(myweekday == 1)
weekday=" 星期一 ";
else if(myweekday == 2)
weekday=" 星期二 ";
else if(myweekday == 3)
weekday=" 星期三 ";
else if(myweekday == 4)
weekday=" 星期四 ";
else if(myweekday == 5)
weekday=" 星期五 ";
else if(myweekday == 6)
weekday=" 星期六 ";
document.write(year+"年"+mymonth+"月"+myday+"日 "+weekday);
</script></font>
· <A href="http://8481.5d6d.com/viewthread.php?tid=31&extra=page%3D1%26amp%3Bfilter%3Dtype%26amp%3Btypeid%3D22" target="_blank">注册说明</A>
· <A href="http://8481.5d6d.com/forumdisplay.php?fid=35&page=1&filter=type&typeid=22" target="_blank">新人必看</A>
· <A href="http://8481.5d6d.com/archiver/" target="_blank">无图版</A>
</div>
<div style="margin-left:5px;float:right;margin-right:5px;">
<A href="http://8481.5d6d.com/bbs.php" ><font style="font-size:12px;">论坛
</font></A>·<A href="http://8481.5d6d.com/thread-132-1-1.html" target="_blank">广告服务</A>· <A onclick="this.style.behavior='url(#default#homepage)';this.setHomePage
('http://8481.5d6d.com');" href="#"><font color="blue">设为首页</font></a> · <A href="javascript:window.external.AddFavorite('http://8481.5d6d.com','上善社区论坛
')"><font color="blue">加入收藏</font></a>
</div>
</div>
複製代碼
这个代码放通栏广告
<TABLE style="WIDTH: 508px; HEIGHT: 79px" border=0 cellSpacing=1 cellPadding=0 width=508 bgColor=#dfdfdf align=center>
<TBODY>
<TR>
<TD bgColor=#fffheight=46 background=http://images.5d6d.net/dz60/GreenPark/portalbox_bg.gif align=middle>
<TABLE style="WIDTH: 508px; HEIGHT: 65px" border=0 cellSpacing=0 cellPadding=0 width=508>
<TBODY>
<TR>
<TD rowSpan=2 width=70 align=middle><A href="home.php"><IMG border=0 alt=上善网 src="userdirs/2/c/8481/attachments/month_1009/1009250038c562d737334252d4.gif" width=39 height=40 twffan="done"></A></TD>
<TD rowSpan=2 width=70 align=middle><A href="forum-19-1.html"><IMG border=0 alt=会员风采 src="userdirs/2/c/8481/attachments/month_1009/1009250038bfda9262a216de19.gif" width=39 height=40 twffan="done"></A></TD>
<TD rowSpan=2 width=70 align=middle><A href="forum-22-1.html"><IMG border=0 alt=情感话题 src="userdirs/2/c/8481/attachments/month_1009/100925003862a55e7b7e1ce881.gif" width=39 height=40 twffan="done"></A></TD>
<TD rowSpan=2 width=70 align=middle><A href="forum-16-1.html"><IMG border=0 alt=上善中学 src="userdirs/2/c/8481/attachments/month_1009/1009250038382c3aeffeba1c07.gif" width=31 height=30 twffan="done"></A></TD>
<TD rowSpan=2 width=70 align=middle><A href="forumdisplay.php?fid=35&page=1&filter=type&typeid=22"><IMG border=0 alt=社区公告 src="userdirs/2/c/8481/attachments/month_1009/10092500385de4649e6a308306.gif" width=39 height=40 twffan="done"></A></TD>
<TD rowSpan=2 width=70 align=middle><A href="search.php?notgoogle=1"><IMG border=0 alt=论坛搜索 src="userdirs/2/c/8481/attachments/month_1009/10092500384216c571edadd4a5.gif" width=39 height=40 twffan="done"></A></TD>
<TD rowSpan=2 width=70 align=middle><A href="forumdisplay.php?fid=72&filter=type&typeid=82"><IMG border=0 alt=客家歌曲 src="userdirs/2/c/8481/attachments/month_1009/1009250038eea81e0fb0f01858.png" width=31 height=30 twffan="done"></A></TD>
<TR>
<TD height=20 vAlign=center align=left></TD></TR>
<TR>
<TD width=70 align=middle><SPAN twffan="done"><A href="home.php">上善网</A></SPAN></TD>
<TD width=70 align=middle><SPAN twffan="done"><A href="forum-19-1.html">会员风采 </A></SPAN></TD>
<TD width=70 align=middle><SPAN twffan="done"><A href="forum-22-1.html">情感话题 </A></SPAN></TD>
<TD width=70 align=middle><SPAN twffan="done"><A href="forum-16-1.html">上善中学</A></SPAN></TD>
<TD width=70 align=middle><A href="forumdisplay.php?fid=35&page=1&filter=type&typeid=22">社区公告</A></TD>
<TD width=70 align=middle><A href="search.php?notgoogle=1">社区搜索</A></TD>
<TD width=70 align=middle><A href="forumdisplay.php?fid=72&filter=type&typeid=82">客家歌曲</A></TD>
<TD vAlign=bottom colSpan=3 align=left><FONT color=red></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
複製代碼
作者:
恒小杰
時間:
2019-8-7 20:21
学习了!!
歡迎光臨 SCLUB免費論壇申請-使用者論壇 (http://weclub.info/discuz/)
Powered by Discuz! 7.2