Taqabbalallahu minna wa minkum

Taqabbalallahu minna wa minkum
Selamat Hari Raya Idul Fitri 1428 H
Mohon Maaf Lahir dan Batin

tapi sekarang versi programmer flash dengan efek cycle text dengan actionscript (dasar programmer, hehehe...).

cycleText(teks1, "Selamat Hari Raya Idul Fitri 1428 H, Mohon Maaf Lahir dan Batin", 20);

cycle.as
cycleText = function(target:TextField, targetText:String, speed:Number)
{
var str = targetText;

// create an array of character offsets
var ar = [];
for (var i = 0 ; i < str.length ; i++ ) {
ar.push ( Math.round ( Math.random () * 30 ) ); // mixed reveal
//ar.push(i); // linear reveal
}

// method for scrambling
scramble = function() {
var total = 0;
target.text = "";
// rebuild the string s that each character is represented by
// it's character code + it's offset
for (var i = 0 ; i < str.length ; i++ ) {
if(ar[ i ] > 0) ar[ i ]--; total += ar[ i ];
var code = ( str.charCodeAt( i ) + ar[ i ] );
target.text += String.fromCharCode ( code );
}
// stop when complete
if( !total ) clearInterval ( scrambleInt );
}
scrambleInt = setInterval ( scramble, speed );
}
Semoga semua amal ibadah kita dibulan Ramadhan kali ini diterima oleh Allah SWT.
Amiiin.

Comments

Popular posts from this blog

Ucapan dari Programmer

nonton bola lewat streaming

english file PES 2008