copy图片链接至浏览器地址栏查看详细教程
http://www.51one.com/articlepic/0112/004.jpg
以下为教程正文:
<!--表格内第二行2表格开始-->
<td align=Left><table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td rowspan=4 width=" + BoardImgWidth + " valign=top><br>
</td><td width=4 rowspan=4>
</td></tr>
<tr height=20><td>
</td><td align=right rowspan=2 valign=top><img src=images/null.gif width=2 height=2><br>在此论坛发表新帖子<br>查看精华区内<br></td></tr>
<tr height=15><td>
</td>
<tr height=15 class=TBBG1><td colspan=2>//此处作者singnore不够严谨
<br>版主
</tr></table></td>
<!--表格内第二行2表格结束-->
说明:
第二行2表格开始
包含连接语句:
BoardImgUrl---<a href=Board/Board.asp?BoardID=" + BoardID + ">点击前图进入版块
<a href=Board/Board.asp?BoardID=" + BoardID + ">" + BoardName + 版名及连接
<a href=announce/announce2.asp?BoardID=" + BoardID + ">在此论坛发表新帖子
<a href=Board/EBoard.asp?BoardID=" + BoardID + ">查看精华区内容
BoardIntro----版块说明
DisplayBoardMastList(MasterList,5)----斑竹名单列表
对应CSS层标记可自己参考风格文件
模板js语句:
document.write("<td align=Left><table width=100% border=0 cellspacing=0 cellpadding=0>");
if(BoardImgUrl != "" && BoardImgUrl != null)document.write("<tr><td rowspan=4 width=" + BoardImgWidth + " valign=top><img src=images/null.gif width=2 height=3><br><a href=Board/Board.asp?BoardID=" + BoardID + "><img src=\"" + BoardImgUrl + "\" width=" + BoardImgWidth + " height=" + BoardImgHeight + " border=0></a></td><td width=4 rowspan=4><img src=images/null.gif width=2 height=2></td></tr>");
document.write("<tr height=20><td><a href=Board/Board.asp?BoardID=" + BoardID + ">" + BoardName + "</a>");
document.write("</td><td align=right rowspan=2 valign=top><img src=images/null.gif width=2 height=2><br><a href=announce/announce2.asp?BoardID=" + BoardID + "><img src=images/" + GBL_DefineImage + "BoardTopic/post.gif height=13 width=12 border=0 title=在此论坛发表新帖子></a><br><img src=images/null.gif width=2 height=5><br><a href=Board/EBoard.asp?BoardID=" + BoardID + "><img src=images/" + GBL_DefineImage + "BoardTopic/elist.gif height=13 width=12 border=0 title=查看精华区内容(共" + GoodNum + "精华帖子)></a></td></tr>");
document.write("<tr height=15><td>");
document.write(BoardIntro);
document.write("</td>");
document.write("<tr height=15 class=TBBG1><td colspan=2>");
document.write("<img src=images/null.gif height=2 width=192><br>版主:");
DisplayBoardMastList(MasterList,5);
document.write("</tr></table></td>");
copy图片链接至浏览器地址栏查看详细教程
http://www.51one.com/articlepic/0112/005.jpg
以下为教程正文:
<!--表格内第二行3表格开始-->
<td align=Left width=224 valign=top>
主题:无
主题:已设置为隐藏
主题
主题
回复
无
回复
游客
新帖
主题 总量
</td>
<!--表格内第二行3表格结束-->
说明:
第二行3表格开始
包含连接语句:
<a href=announce/announce.asp?BoardID=" + BoardID + "&ID=" + LastAnnounceID + "&Aupflag=1&Anum=1>" + htmlencode(LastTopicName) +
---------主题连接的路径
<a href=\"User/LookUserInfo.asp?Name=" + htmlencode(LastWriter) + "\">" + htmlencode(LastWriter) + 回复人的资料连接
htmlencode(LastWriter)---------回复人
LastWriteTime ---------回复时间
TodayAnnounce ---------今日新帖统计
TopicNum ---------本版主题统计
AnnounceNum ---------该版总帖量
对应CSS层标记可自己参考风格文件
模板js语句:
document.write("<td align=Left width=224 valign=top><img src=images/null.gif height=2 width=2><br>");
if(LastTopicName == "" || LastTopicName==null)
{
document.write("主题:无");
}
else
{
if(strlength(LastTopicName)>31)LastTopicName = LeftTrue(LastTopicName,31-3) + "..."
LastTopicName = htmlencode(LastTopicName);
if(ForumPass != "" || (BoardLimit&(1<<(2-1))) || (BoardLimit&(1<<(7-1))))
{
document.write("主题:已设置为隐藏");
Temp = 1;
}
else
{
if(parseInt(LastAnnounceID)==0){document.write("主题:" + htmlencode(LastTopicName));}
else{document.write("主题:<a href=announce/announce.asp?BoardID=" + BoardID + "&ID=" + LastAnnounceID + "&Aupflag=1&Anum=1>" + htmlencode(LastTopicName) + "</a>");}
}
}
document.write("<br><img src=images/null.gif height=4 width=2><br>");
if(LastWriter == "")
{
document.write("回复:");
LastWriter="无";
}
else
{
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("回复:" );
if(LastWriter!="游客")
{
if(Temp != 1)document.write("<a href=\"User/LookUserInfo.asp?Name=" + htmlencode(LastWriter) + "\">" + htmlencode(LastWriter) + "</a> ");
}
else
{
document.write(htmlencode(LastWriter) + " ")
}
document.write(LastWriteTime);
document.write("<br><img src=images/null.gif height=4 width=2><br>");
document.write("新帖:<font color=#666699 class=TBtwofont>" + TodayAnnounce + "</font> 主题 " + TopicNum + " 总量 " + AnnounceNum);
document.write("</td></tr>");
}
}
- (8985篇文章)ASP.NET教程
- (6961篇文章)FreeBSD使用教程
- (20篇文章)LeadBBS论坛

