Tag Archives: substring

Função “três pontinhos”

Código simples para você ter aqueles “três pontinhos” em sua notícia, feeds etc…   Usando VBScript <%@ Language="VBScript" %> <% Public Function Pontos(VarTexto, Max) ' Recebemos os valores If Int(Len(VarTexto)) > Max Then Response.Write(Left(VarTexto, Max)&"…") ' Usamos a função "substring" para fazer os cortes Else Response.Write(VarTexto) End If End Function Texto = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the whenwhen, when an unknown …
Continue Lendo

Agência OFF, desenvolvimento de soluções web para as Agências Digitais