function cut(str,count1) count1=cint(count1) for j=1 to 0 s=mid(str,j,1) if asc(s)<255 and asc(s)>0 then count1=count1-1 else count1=count1-2 end if if count1<=0 then cut=mid(str,1,j) exit function end if next if count1>=0 then cut=str end if end function function d_cut(str,num,type1) dim start_i,end_i start_i=instr(str,"0 then end_i=instr(start_i+5,str,">") if end_i<>0 then dim spanstr spanstr=left(str,end_i) start_i=instr(end_i+1,str,"") if start_i<>0 then title=mid(str,end_i+1,start_i-end_i-1) if type1=1 then d_cut=title exit function end if title=cut(title,num) else title=mid(str,end_i+1) end if d_cut=spanstr&title&"" end if else if type1=0 then d_cut=cut(str,num) else d_cut=str end if end if end function dim w163news w163news=w163news &"" set xiubu=conn.execute("select id,art_type from w163art_type where sid=-1 order by pid") while not xiubu.eof w163news=w163news &"" for i=1 to 2 if xiubu.eof then w163news=w163news &"" else w163news=w163news &"" xiubu.movenext end if next wend w163news=w163news &"
" w163news=w163news &"" w163news=w163news &"" w163news=w163news &"" w163news=w163news &" " set w163=conn.execute("select top 10 * from w163_new where sid="&id1&" or sid in(select id from w163art_type where sid="&id1&") order by id desc") do while not w163.eof w163news=w163news &"" w163news=w163news &"" w163news=w163news &"" w163.movenext loop w163.close set w163=nothing w163news=w163news &"
 " w163news=w163news &"" w163news=w163news & xiubu("art_type") w163news=w163news &"·¢±íʱ¼ä
" w163news=w163news &"" w163news=w163news & d_cut(w163("w163newsname"),29,0) w163news=w163news &" [" w163news=w163news & split(w163("adddate")," ")(0) w163news=w163news &"]
"