Buonasera a tutti,
sono Jo!![]()
Scrivo su questo forum a causa di un problema per me assai complesso
Sto realizzando un sito nella cui intro è presente uno script per la battitura automatica di un testo scandito da una ripetizione di un preciso suono. (*)
Purtroppo al termine della battitura del testo l'audio dell'intero sito si interrompe..![]()
![]()
ho provato anche a caricare lo script da un swf esterno, ma si verifica lo stesso identico problema..
Qualcuno sa dirmi perchè questo avviene?![]()
(*)
// -->
i = 0;
// velocità battitura
speed = 10;
// -->
type = new Sound();
type.attachSound("type");
type.setVolume(80);
// -->
str = "";
str += "offerte dal web."+newline;
setInterval(scrive, speed, str);
// -->
function scrive(str) {
i++;
testo = substring(str, 0, i);
output = testo;
if (output == str) {
type.stop();
} else {
type.start();
}
}
_____________________________________________
Grazie
Jo

Rispondi quotando