免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[版型教學] 头部导航和logo旁导航代码 仿独立

预览图片:
  1. </script>
  2. <script type="text/javascript">
  3. function nTabs(thisObj,Num){
  4. if(thisObj.className == "active")return;
  5. var tabObj = thisObj.parentNode.id;
  6. var tabList = document.getElementById(tabObj).getElementsByTagName("li");
  7. for(i=0; i <tabList.length; i++)
  8. {
  9.   if (i == Num)
  10.   {
  11.    thisObj.className = "active";
  12.       document.getElementById(tabObj+"_Content"+i).style.display = "block";
  13.   }else{
  14.    tabList[i].className = "normal";
  15.    document.getElementById(tabObj+"_Content"+i).style.display = "none";
  16.   }
  17. }
  18. }</script>
  19. <div style="background:#ffffff url('http://mm.a.5d6d.com/userdirs/2/c/8481/attachments/month_1008/1008091328df3b0c22c0e7395d.gif') repeat-x 50% top;
  20. border-bottom : 2px solid #cccccc; FONT-SIZE: 12px; LINE-HEIGHT: 24px; HEIGHT: 24px;">
  21. <div style="margin-left:5px;float:left">
  22. <tr>
  23.     <td><p align="center">
  24. <font style="color:#000;"><script language=Javascript type=text/Javascript>var day="";
  25. var month="";
  26. var ampm="";
  27. var ampmhour="";
  28. var myweekday="";
  29. var year="";
  30. mydate=new Date();
  31. myweekday=mydate.getDay();
  32. mymonth=mydate.getMonth()+1;
  33. myday= mydate.getDate();
  34. myyear= mydate.getYear();
  35. year=(myyear > 200) ? myyear : 1900 + myyear;
  36. if(myweekday == 0)
  37. weekday=" 星期日 ";
  38. else if(myweekday == 1)
  39. weekday=" 星期一 ";
  40. else if(myweekday == 2)
  41. weekday=" 星期二 ";
  42. else if(myweekday == 3)
  43. weekday=" 星期三 ";
  44. else if(myweekday == 4)
  45. weekday=" 星期四 ";
  46. else if(myweekday == 5)
  47. weekday=" 星期五 ";
  48. else if(myweekday == 6)
  49. weekday=" 星期六 ";
  50. document.write(year+"年"+mymonth+"月"+myday+"日 "+weekday);
  51. </script></font>
  52. · <A href="http://8481.5d6d.com/viewthread.php?tid=31&extra=page%3D1%26amp%3Bfilter%3Dtype%26amp%3Btypeid%3D22" target="_blank">注册说明</A>
  53. · <A href="http://8481.5d6d.com/forumdisplay.php?fid=35&page=1&filter=type&typeid=22" target="_blank">新人必看</A>
  54. · <A href="http://8481.5d6d.com/archiver/" target="_blank">无图版</A>
  55. </div>
  56. <div style="margin-left:5px;float:right;margin-right:5px;">
  57. <A href="http://8481.5d6d.com/bbs.php" ><font style="font-size:12px;">论坛
  58. </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
  59. ('http://8481.5d6d.com');" href="#"><font color="blue">设为首页</font></a> ·  <A href="javascript:window.external.AddFavorite('http://8481.5d6d.com','上善社区论坛
  60. ')"><font color="blue">加入收藏</font></a>
  61. </div>
  62. </div>
複製代碼
这个代码放通栏广告
  1. <TABLE style="WIDTH: 508px; HEIGHT: 79px" border=0 cellSpacing=1 cellPadding=0 width=508 bgColor=#dfdfdf align=center>
  2. <TBODY>
  3. <TR>
  4. <TD bgColor=#fffheight=46 background=http://images.5d6d.net/dz60/GreenPark/portalbox_bg.gif align=middle>
  5. <TABLE style="WIDTH: 508px; HEIGHT: 65px" border=0 cellSpacing=0 cellPadding=0 width=508>
  6. <TBODY>
  7. <TR>
  8. <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>
  9. <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>
  10. <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>
  11. <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>
  12. <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>
  13. <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>
  14. <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>
  15. <TR>
  16. <TD height=20 vAlign=center align=left></TD></TR>
  17. <TR>
  18. <TD width=70 align=middle><SPAN twffan="done"><A href="home.php">上善网</A></SPAN></TD>
  19. <TD width=70 align=middle><SPAN twffan="done"><A href="forum-19-1.html">会员风采 </A></SPAN></TD>
  20. <TD width=70 align=middle><SPAN twffan="done"><A href="forum-22-1.html">情感话题 </A></SPAN></TD>
  21. <TD width=70 align=middle><SPAN twffan="done"><A href="forum-16-1.html">上善中学</A></SPAN></TD>
  22. <TD width=70 align=middle><A href="forumdisplay.php?fid=35&page=1&filter=type&typeid=22">社区公告</A></TD>
  23. <TD width=70 align=middle><A href="search.php?notgoogle=1">社区搜索</A></TD>
  24. <TD width=70 align=middle><A href="forumdisplay.php?fid=72&filter=type&typeid=82">客家歌曲</A></TD>
  25. <TD vAlign=bottom colSpan=3 align=left><FONT color=red></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
複製代碼

学习了!!

TOP

返回列表