在线情况
楼主
  • 头像
  • !~~!#!@#@
  • 级别
    • 声望+4
    • 积分1007
    • 经验38843
    • 文章1734
    • 注册2005-11-21
    【已解决】泪腺朋友看看
    你提供的DZ模板,可以提供和你首页那样的,显示主题的吗?
    [ 此贴最后由孤独人在2007-3-29 14:01:08编辑过 ]
    asp技术学习感谢您的参与
    在线情况
    2
    • 头像
    • !~~!#!@#@
    • 级别
      • 声望+4
      • 积分1007
      • 经验38843
      • 文章1734
      • 注册2005-11-21
      从你的首页找到了: function displayboard(BoardID,BoardAssort,BoardName,BoardIntro,LastWriter,LastWriteTime,TopicNum,AnnounceNum,ForumPass,LastAnnounceID,LastTopicName,MasterList,BoardLimit,AssortName,TodayAnnounce,GoodNum,BoardImgUrl,BoardImgWidth,BoardImgHeight,onlineUser,LowerBoard,AssortMaster) { var Temp = 0; if(CurrentAssosrt!=BoardAssort) { CurrentAssosrt = BoardAssort if(Flag == 1) { document.write("
      "); if(GBL_TableBottomString != "")document.write("
      " + GBL_TableBottomString + "
      "); document.write("
      "); } if(GBL_TableHeadString != ""){ var Temp1 = "" + AssortName + ""; var TableHeadString = GBL_TableHeadString.replace(" ",Temp1); document.write("
      " + TableHeadString + "
      "); document.write(""); }else{ document.write("
      "); } document.write(""); Flag = 1; } document.write(""); document.write(""); document.write(""); if(LastTopicName == "" || LastTopicName==null) { document.write(""); }
      "); document.write(""); document.write("
      " + AssortName + ""); if(AssortMaster != ""){document.write("  " + DEF_PointsName7 + ":");DisplayBoardMastList(AssortMaster,6,1);} document.write("
      "); document.write("
      标题今日主题回复最后发表"+DEF_PointsName8+"
      0)document.write("_"); if(ForumPass!="") { document.write("lock.gif title=保密论坛"); } else { if(BoardLimit&(1<<(7-1))) { document.write("lock3.gif title=" + DEF_PointsName8 + "专区"); } else { if((BoardLimit&(1<<(4-1))) && (BoardLimit&(1<<(3-1))) && (BoardLimit&(1<<(6-1)))) { document.write("readonly.gif title=只读论坛"); } else { if(BoardLimit&(1<<(2-1))) { document.write("lock2.gif title=正式会员论坛"); } else { if(BoardLimit&(1<<(1-1))) { document.write("lock1.gif title=注册认证论坛"); } else { if(BoardLimit&(1<<(9-1))) { document.write("open.gif title=开放论坛"); } else { document.write("1.gif title=常规论坛"); } } } } } } document.write(">"); if(BoardImgUrl != "" && BoardImgUrl != null)document.write(""); document.write(""); document.write(""); document.write("
      " + BoardName + ""); document.write("
      "); document.write(BoardIntro); document.write("
      " + TodayAnnounce + "" + TopicNum + "" + AnnounceNum + ""); document.write("该版面为空"); } else { var LastTopicName1 = LastTopicName if(strlength(LastTopicName)>25)LastTopicName = LeftTrue(LastTopicName,25-2) + "…" LastTopicName = htmlencode(LastTopicName); if(ForumPass != "" || (BoardLimit&(1<<(15-1))) || (BoardLimit&(1<<(2-1))) || (BoardLimit&(1<<(7-1)))) { document.write(""); document.write("私密论坛"); Temp = 1; } else { document.write(""); if(LastWriteTime.length==14)LastWriteTime = LastWriteTime.substr(0,4) + "-" + LastWriteTime.substr(4,2) + "-" + LastWriteTime.substr(6,2) + " " + LastWriteTime.substr(8,2) + ":" + LastWriteTime.substr(10,2) document.write("Re:"+ htmlencode(LastTopicName) +"
      "); } } if(LastWriter!="游客" && LastWriter!="") {if(Temp != 1)document.write("By " + htmlencode(LastWriter) + "
      ["+LastWriteTime+"]");} else {if(LastWriter != "")document.write(htmlencode(LastWriter) + " ");} document.write("
      "); DisplayBoardMastList(MasterList,5,0); document.write("
      asp技术学习感谢您的参与
      注意中间有三个空格,这三个空格必须要有,是用来显示标题的 在模版代码中这三个空格会被替换成标题名称
      在线情况
      3
      • 头像
      • 爷们儿
      • 级别
      • 徽章
      • 声望+3
      • 积分3522
      • 经验137627
      • 文章3180
      • 注册2003-08-19
      哦,发布这个代码之后我又做了修改,主要修改了更新帖子的显示方式和区名称的显示方式 对于区名称显示我把显示名称居中了,还有就是区列表头部我将官方的显示方式给改了 官方的显示方式是:如果有自定义头部的话,自定义头部会显示在最上方,下边才显示 区标题,这样就会多出来一行,个人觉得不太美观 现在的模版代码是 [CODE]function displayboard(BoardID,BoardAssort,BoardName,BoardIntro,LastWriter,LastWriteTime,TopicNum,AnnounceNum,ForumPass,LastAnnounceID,LastTopicName,MasterList,BoardLimit,AssortName,TodayAnnounce,GoodNum,BoardImgUrl,BoardImgWidth,BoardImgHeight,onlineUser,LowerBoard,AssortMaster) { var Temp = 0; if(CurrentAssosrt!=BoardAssort) { CurrentAssosrt = BoardAssort if(Flag == 1) { document.write("
      "); if(GBL_TableBottomString != "")document.write("
      " + GBL_TableBottomString + "
      "); document.write("
      "); } if(GBL_TableHeadString != ""){ var Temp1 = "" + AssortName + ""; var TableHeadString = GBL_TableHeadString.replace(" ",Temp1); document.write("
      " + TableHeadString + "
      "); document.write(""); }else{ document.write("
      "); } document.write(""); Flag = 1; } document.write(""); document.write(""); document.write(""); if(LastTopicName == "" || LastTopicName==null) { document.write(""); }[/CODE] 表格头部代码例子 [CODE]
      "); document.write(""); document.write("
      " + AssortName + ""); if(AssortMaster != ""){document.write("  " + DEF_PointsName7 + ":");DisplayBoardMastList(AssortMaster,6,1);} document.write("
      "); document.write("
      标题今日主题回复最后发表"+DEF_PointsName8+"
      0)document.write("_"); if(ForumPass!="") { document.write("lock.gif title=保密论坛"); } else { if(BoardLimit&(1<<(7-1))) { document.write("lock3.gif title=" + DEF_PointsName8 + "专区"); } else { if((BoardLimit&(1<<(4-1))) && (BoardLimit&(1<<(3-1))) && (BoardLimit&(1<<(6-1)))) { document.write("readonly.gif title=只读论坛"); } else { if(BoardLimit&(1<<(2-1))) { document.write("lock2.gif title=正式会员论坛"); } else { if(BoardLimit&(1<<(1-1))) { document.write("lock1.gif title=注册认证论坛"); } else { if(BoardLimit&(1<<(9-1))) { document.write("open.gif title=开放论坛"); } else { document.write("1.gif title=常规论坛"); } } } } } } document.write(">"); if(BoardImgUrl != "" && BoardImgUrl != null)document.write(""); document.write(""); document.write(""); document.write("
      " + BoardName + ""); document.write("
      "); document.write(BoardIntro); document.write("
      " + TodayAnnounce + "" + TopicNum + "" + AnnounceNum + ""); document.write("该版面为空"); } else { var LastTopicName1 = LastTopicName if(strlength(LastTopicName)>25)LastTopicName = LeftTrue(LastTopicName,25-2) + "…" LastTopicName = htmlencode(LastTopicName); if(ForumPass != "" || (BoardLimit&(1<<(15-1))) || (BoardLimit&(1<<(2-1))) || (BoardLimit&(1<<(7-1)))) { document.write(""); document.write("私密论坛"); Temp = 1; } else { document.write(""); if(LastWriteTime.length==14)LastWriteTime = LastWriteTime.substr(0,4) + "-" + LastWriteTime.substr(4,2) + "-" + LastWriteTime.substr(6,2) + " " + LastWriteTime.substr(8,2) + ":" + LastWriteTime.substr(10,2) document.write("Re:"+ htmlencode(LastTopicName) +"
      "); } } if(LastWriter!="游客" && LastWriter!="") {if(Temp != 1)document.write("By " + htmlencode(LastWriter) + "
      ["+LastWriteTime+"]");} else {if(LastWriter != "")document.write(htmlencode(LastWriter) + " ");} document.write("
      "); DisplayBoardMastList(MasterList,5,0); document.write("
      [/CODE] 这样做可以作出更丰富的标题样式,需要注意的是这一行
      asp技术学习感谢您的参与
      在线情况
      4
      • 头像
      • !~~!#!@#@
      • 级别
        • 声望+4
        • 积分1007
        • 经验38843
        • 文章1734
        • 注册2005-11-21
        OK,谢谢
        asp技术学习感谢您的参与
        Page created in 0.0273 seconds with 6 queries.