如何在下面的“截取文章部分内容代码”中修改文字的大小、字体的颜色及行距?谢谢![送50分]
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
Function gotTopic(str,strlen)
if str="" then
gotTopic=""
exit function
end if
dim l,t,c, i
str=replace(replace(replace(replace(str," "," "),""",chr(34)),">",">"),"<","<")
l=len(str)
t=0
for i=1 to l
c=Abs(Asc(Mid(str,i,1)))
if c>255 then
t=t+2
else
t=t+1
end if
if t>=strlen then
gotTopic=left(str,i) & "…"
exit for
else
gotTopic=str
end if
next
gotTopic=replace(replace(replace(replace(gotTopic," "," "),chr(34),"""),">",">"),"<","<")
End Function
</SCRIPT>
调用代码:<% =(gotTopic((Recwzxs.Fields.Item("wznr").Value),200)) %>
[ 本帖最后由 tepnidh 于 2010-9-4 19:52 编辑 ]