showbody.asp
来自「asp的新闻网站」· ASP 代码 · 共 54 行
ASP
54 行
<%
sub ShowBody(Str)
dim result
dim l
dim i
if str<>"" then
bb=replace(str,"<","<")
bb=replace(bb,">",">")
aa=replace (bb,chr(13)+chr(10),"<br>")
aa=replace(aa," "," ")
str=aa
l=Len(str)
result=""
for i = 1 to l
select case mid(str,i,1)
case chr(13)
result=result+"<br>"
case chr(9)
result=result+" "
case chr(32)
if i+1<=l and i-1>0 then
if mid(str,i+1,1)=chr(32) or mid(str,i+1,1)=chr(9) or mid(str,i-1,1)=chr(32) or mid(str,i-1,1)=chr(9) then
result=result+" "
else
result=result+" "
end if
else
result=result+" "
end if
case else
result=result+mid(str,i,1)
end select
next
response.write result
else
response.write " "
end if
end sub
'显示更新时间
sub showtime(stime)
if stime<>"" then '时间
stime=replace(stime,"-","/")
stime=replace(stime," ","/")
stime=left(stime,len(stime)-3)
stime=right(stime,len(stime)-5)
stime="("&stime&")"
end if
Response.Write "<font color='#000099'size=1>"&derivation&stime&"</font>"
end sub
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?