Tag Archives: função tres 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
Tags: função • função tres pontinhos • Function • int • Len • length • public • substring • três pontinhos
Deixe seu comentário |

