<a href="url" title=<%=rs_news("title")%>> '鼠标移动到上面后显示标题的全部内容
<%
if len(trim(rs_news("title")))>15 then
response.write left(rs_news("title"),15)&"…"
else
response.write trim(rs_news("title"))
end if
%>
</a>
给你一个函数
直接调用就可以了
function FormatTitle(str)
if len(trim(str))>=25 then
FormatTitle=left(trim(str),25)&"..."
else
FormatTitle=trim(str)&"..."
end if
end function