Visualizzazione dei risultati da 1 a 4 su 4

Discussione: include con scroll

  1. #1

    include con scroll

    ciao ragazzi

    dovrei inserire in una pagina una pagina include ma considerato che il testo è molto lungo come posso limitare la dimensione oltre ad onserire uno scroll?

    grazie

  2. #2
    Ciao, potresti usare una funzione asp che tronchi il testo dopo n lettere e linkare il testo completo in un'altra pagina con un pulsantino (oppure i classici ...) inserito dopo il testo troncato.

    La funzione Vb è la seguente:

    FUNCTION CropSentence(strText, intLength, strTrial)
    Dim wsCount
    Dim intTempSize
    Dim intTotalLen
    Dim strTemp

    wsCount = 0
    intTempSize = 0
    intTotalLen = 0
    intLength = intLength - Len(strTrial)
    strTemp = ""

    IF Len(strText) > intLength THEN
    arrTemp = Split(strText, " ")
    FOR EACH x IN arrTemp
    IF Len(strTemp) <= intLength THEN
    strTemp = strTemp & x & " "
    END IF
    NEXT
    CropSentence = Left(strTemp, Len(strTemp) - 1) & strTrial
    ELSE
    CropSentence = strText
    END IF
    END FUNCTION

    ...ti spiego...

    strText è una variabile che dovrà contenere il testo che vuoi troncare
    intLenght è una variabile che conterrà il numero di lettere che vuoi visualizzare
    strTrial sono i caratteri o il codice html che vuoi visualizzare dopo il testo troncato...


    Se non hai capito qualcosa chiedimi pure!!

    Ciao
    www.granadilla.it
    Granadilla - Design Juice

  3. #3
    ho risolto diversamente ma anche la tua idea non è male...

    guarda quì

  4. #4
    heheheh...sì effettivamente anche quella soluzione è accettabile...oppure potresti usare un iframe!

    ciaooooooo
    www.granadilla.it
    Granadilla - Design Juice

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.