Thursday, July 29th 2010, 1:33pm UTC+2
You are not logged in.

|
|
ActionScript-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
var t = ' lirumlarumlöffelstiel...wer gar nichts hat, hat auch sehr viel';
var _pause = 4000; // milliseconds
var speed = 40; // milliseconds for textticker-effect
var counter=0; var two=0;
var twoSpeed=10; // speed for blink
var twoCount=0;
var blink = 2; // counts of blink while paused
var hasPaused = false;
intval = setInterval(setText, speed, t);
function setText(s){
var tt = t.substring(0, counter);
myT.text = tt;
if(counter == s.length) {
if(!time1){time1 = getTimer(); time2 = time1+_pause;}
if(returnPause(time2)){ delete time1, delete time2, counter=0; two=0;twoCount=0; myT._visible=true;}else{ two++; if(two==twoSpeed && twoCount<(blink*2)){myT._visible = !myT._visible;twoCount+=1;two=0;}}
}else{
counter++;
}
}
function returnPause(t){
var z = getTimer();
if(z >= t) return true;
return false;
}
|

