Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Testo Dinamico

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2001
    Messaggi
    29

    Testo Dinamico

    salve a tutti, ho questo codice che fa scrivere del testo:

    stop();

    // inizializzazione variabili
    i = 0;

    // velocità battitura
    speed = 28;

    // testo da battere
    str = ""
    str += "bLA bLA"+newline;
    str += ""+newline;
    str += "bLA bLA."+newline;
    str += ""+newline;
    setInterval(scrive, speed, str);

    // funzione che scrive il testo nell'areaTesto
    function scrive(str) {
    i++;
    testo = substring(str, 0, i);
    output = testo;
    if (output == str) {
    type.stop();
    } else {
    type.start();
    }
    }


    come faccio a dirgli quando hai finito di scriverlo passa al fotogramma n°.... ????

    GRazie !!!

  2. #2
    codice:
    stop();
    
    // inizializzazione variabili
    i = 0;
    
    // velocità battitura
    speed = 28;
    
    // testo da battere
    str = ""
    str += "bLA bLA"+newline;
    str += ""+newline;
    str += "bLA bLA."+newline;
    
    str += ""+newline;
    
    setInterval(scrive, speed, str);
    
    // funzione che scrive il testo nell'areaTesto
    function scrive(str) {
    i++;
    
    testo = substring(str, 0, i);
    output = testo;
    if (output == str) {
    type.stop();
    gotoAndStop(2);
    } else {
    type.start();
    }
    }


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 © 2024 vBulletin Solutions, Inc. All rights reserved.