[b]mizterious[/b]
coba pake kode ini bro...
simpan kodenya di js bro..
di bagian c..
edit yg saya tebalin yach...
[quote]var shout = "<div align=\"left\" id=\"tw\"><br></div>";
document.getElementById('cpShoutoutBox').innerHTML = "<div>"+shout+"</div>";
[color=red]// EDIT BAGIAN INI[/color]
var content = "[b]KATA-KATA KAMU[/b]";
function twDisplayTW() {twDisplay('tw',content,0);}
loaded('tw',twDisplayTW);
var brk = '~';
var resetTime = 1;
[color=green]// JANGAN EDIT BAGIAN INI[/color]
function twDisplay(id,content,num) {
var delay = 140;
if (num <= content.length) {
var lt = content.substr(0,num);
document.getElementById(id).innerHTML = lt.replace(RegExp(brk,'g'),'<br \/>');
num++; if (num > content.length) delay = resetTime * 1000;
}
else
{
document.getElementById(id).innerHTML = ''; num = 0;
}
if (delay > 0) setTimeout('twDisplay("'+id+'","'+content+'","'+num+'")',delay);
}
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;};
function loaded(i,f) {
if (document.getElementById && document.getElementById(i) != null) f();
else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}[/quote]