[求助]首页新闻调用代码含义
我想请大家帮我解释一下红色代码的意思:StrTemp=split(mb_news,"|||@@@|||")
dim Ft_mbstr
Ft_mbstr=replace(StrTemp(0),"{left_pub}",left_pub())
Ft_mbstr=replace(Ft_mbstr,"$hotnum$",hotnum)
sql="select top "&hotnum&" * from Ft_news order by news_count DESC,news_date desc"
set rs2 = server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
if rs2.bof and rs2.eof then
topnews="<span class=""disable_font"" >内容正在更新之中……</span>"
else
do while not rs2.eof
topnews=topnews+"<img src="""&signimgpath&"/biao.gif"" border=""0""> <a href=shownews.asp?id="&rs2("news_id")&">"&rs2("news_title")&"</a><br>"
rs2.movenext
loop
end if
rs2.close
set rs2=nothing
为什么前台调用的时候要这样写呢?怎么实现调用新闻的呢?
<td>新闻动态:<span class="key_font">$newscount$</span>篇</td>