ハハ、http://5e8.com/blog/index.aspを読むことができます
効果はそのようなものです。 http://pjblog.yyld.net/article.asp?id=31から再現されています
Default.aspを変更すると、変更する前に1つのコピーをバックアップとしてコピーすることをお勧めします。
現れる:
<divclass = "content-top"> <divclass = "contentleft"> </div> <h1class = "contenttitle"> <ahref = "" default.asp?id = "&caters(" cate_id ")&" ""> <%= caters( "cate_name")%> </a> </h1> </div>
に変更された
<divclass = "content-top"> <divclass = "contentleft"> </div> <h1class = "contenttitle" "> <ahref =" default.asp?cateid = <%= caters( "cate_id")%> "> <%= caters(" cate_name ")%> </a> </h1> </div>
変更後の総コードはです
<! - #includefile = "blogcommon.asp" - >
<! - #includefile = "header.asp" - >
<! - #includefile = "common/modset.asp" - >
<! - #includefile = "plugins.asp" - >
<! - #includefile = "class/cls_default.asp" - >
<! - #includefile = "class/cls_logaction.asp" - >
<divid = "tbody">
<divid = "maincontent">
<divid = "innermaincontent">
<divid = "maincontent-topimg"> </div>
<%= content_html_top_default%>
<divid = "content_contentlist" class = "content-width">
<% '主な部分!%>
<%
ifrequest( "cateid")= "" then%>
<TableWidth = 100%> <%
薄暗い
dimtrd
setCaters = server.createObject( "adodb.recordset")
sql = "select*fromblog_categorywherecate_outlink = 0"
caters.opensql、conn、1,1
ifcaters.eofandcaters.bofthen
Response.write( "サーバーデータの読み取りに失敗!")
それ以外
respons.write( "<tr>")
dowhilenotcaters.eof
ifint(trd/2)= trd/2andtrd <> 0thenresponse.write( "</tr> <tr>")
%>
<tdwidth = 50%valign = "top" style = "padding-right:5px;">
<divclass = "content">
<divclass = "content-top"> <divclass = "contentleft"> </div> <h1class = "contenttitle" "> <ahref =" default.asp?cateid = <%= caters( "cate_id")%> "> <%= caters(" cate_name ")%> </a> </h1> </div>
<divclass = "content-body">
<%dimrs、row
行= 0
setrs = server.createObject( "adodb.recordset")
sql = "select*fromblog_contentwherelog_cateid ="&acters( "cate_id")& "orderbylog_posttimedesc"
rs.opensql、conn、1,1
sqlquerynums = sqlquerynums+1
ifrs.eofandrs.bofthen
Response.Write( "NONE")
それ以外
dimlog_weather、log_id
dowhileenotrs.eof
log_id = rs( "log_id")
respons.write( "<imgsrc =" "images/code.gif" "> <ahref =" "default.asp?id ="&log_id& "" "" ">"&htmlencode(cutstr(rs( "log_title")、42))& "</a>")
respons.write( "<br>")
rs.movenext
row = row+1
ifrow = 10then
出口
endif
ループ
endif
rs.close
setrs = Nothing%> <br> </div> </td>
<%
TRD = TRD+1
'iftrd = 10then
'出口
'endif
caters.movenext
ループ
endif
caters.close
setCaters =何もない
%>
</table>
<%else%> <%contentlist%>
<%endif%> </div>
<%= content_html_bottom_default%>
<divid = "maincontent-bottomimg"> </div>
</div>
</div>
<%side_module_replace 'システムサイドバーモジュール情報%>
<divid = "sidebar">
<divid = "innersidebar">
<divid = "SideBar-Topimg"> <! - ツールバートップ画像 - > </div>
<%= side_html_default%>
<divid = "sidebar-bottomimg"> </div>
</div>
</div>
<divstyle = "clear:blote; height:1px; hiddin; hidden; margin-top:-1px;"> </div>
</div>
<! - #includefile = "footer.asp" - >