message = "ESAI - Escritório de Assuntos Internacionais ^" + "UFGD - Universidade Federal da Grande Dourados ^" + "^" scrollSpeed = 50 lineDelay = 1500 txt = "" function scrollText(pos) { if (message.charAt(pos) != '^') { txt = txt + message.charAt(pos) status = txt pauze = scrollSpeed } else { pauze = lineDelay txt = "" if (pos == message.length-1) pos = -1 } pos++ setTimeout("scrollText('"+pos+"')",pauze) } scrollText(0)