?? more調(diào)用插件.txt
字號:
很多朋友反映more調(diào)用不會弄,在這里給大家提供一個基本的信息,還是有不會的話可以在后面跟貼..
<!--#include file="conn.asp"-->
這里的conn.asp是壓縮包里的前臺調(diào)用插件里有的
而不是你自己做的網(wǎng)站里的conn.asp
你可以修改自己網(wǎng)站conn名稱
<%
dim title
title=request("classname")
if title="" then
response.Redirect("default.asp")
end if
%>
寫在最前面的,用來連接數(shù)據(jù)庫和連接新聞內(nèi)容
<%
n=request("n")
if n="" then
n=30
end if
%>
<%
if title<>"" then
sql="select * from NEWS where bigclassname='"&title&"' order by time desc"
set rs=conn.execute(sql)
do while not rs.eof%>
<img src="images/topic_no_new.gif" width="18" height="18"><a href="show.asp?bh=<%=rs("bh")%>">//顯示新聞標題時間和連接
<%response.write(""&rs("title")&"")%>
</a><%=rs("time")%>
<%response.Write("<br>")%>
<% n=n-1
if n<1 then exit do
rs.movenext
loop
rs.close
set rs=nothing
end if
%>
調(diào)用內(nèi)容,就是在數(shù)據(jù)庫里顯示新聞,然后顯示連接地址就可以了.
把這些寫在你的分類asp里面,或者是fenlei_news.asp這樣
在首頁more的連接要寫上fenlei_news.asp?classname=(你想顯示的分類里的more信息)
這樣就可以觀看more了.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -