sql="select top "&indexarticle&" art_id,istop,art_date,art_title,art_good,art_count,user_view from Ft_art order by istop=1,art_count desc,art_id desc"
else
sql="select top "&indexarticle&" art_id,istop,art_date,art_title,art_good,art_count,user_view from Ft_art where cat_id="&x(i)&" order by istop=1,art_id desc"
end if
set rs = server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
rs.movefirst
do while not rs.eof
'replaceText(str)╙├╙┌ALTú¼╚Ñ╡⌠HTML┤·┬δ
'art_title╙├╙┌╧╘╩╛▒Ω╠Γú¼art_alt╙├╙┌╧╘╩╛ALT
arttitle=rs(3)
istop=rs(1)
artgood=rs(4)
artid=rs(0)
artcount=rs(5)
artdate=rs(2)
userview=rs(6)
if instr(arttitle,"<font color")<>0 then
Arr_title=split(arttitle,">")
art_alt=replaceText(arttitle)
if len(art_alt)>cint(titlelen) then '╙├╙┌╧╘╩╛╬─╒┬▒Ω╠Γ
document.write('<table cellspacing="1" cellpadding="0" align="center" <%if i mod 2<>0 then %>style="width:100%;" <%else%>style="width:100%;border-left:1px solid #ffffff;"<%end if%>>');