webdn
 
  首页     免费截图     VIP会员区     广告Banner     技术文档     网站模板  
网站截图,网站每日新 !
虚拟主机
网页模板

首页 >> WebDN 技术文档 >> 网络编程 >> ASP 资料大全 >> Page 30>> 用ASP实现在新闻中限制字体显示的个数

 

用ASP实现在新闻中限制字体显示的个数

【摘 要】本文详细介绍关于用ASP实现在新闻中限制字体显示的个数的文章专题。

这个用在里面限制字体个数的东西:

Dim rsTitle,tmpLeft
rsTitle=Rs("Title")
If Len(rsTitle)>intTitLen Then
????rsLeft=rsTitle
????Do While Len(rsLeft)>intTitLen 'Or Len(Right(rsTitle,intTitLen*j))>intTitLen
?????Response.Write Left(rsLeft,intTitLen)&"
"
?????rsLeft=Right(rsLeft,Len(rsLeft)-intTitLen)
????Loop
????If Not IsNull(rsLeft) Then
?????Response.Write rsLeft
????End If
???Else
????Response.Write rsTitle
???End If

这个市临时写得,写得比较差!谁要是有好的,别忘记交流阿!




电话咨询:010-60520722 QQ咨询:3792656   |   583696287   |   66733350 关于WebDN  |  站点地图  |  联系我们  |  支付方式  |  友情链接
© 2004-2008 WebDN.com 版权所有. 沪ICP备05040479号