[quote=cheuw]^bro ebeng ini..
shouout smpen d bag c
Code:
/* ---------------------------------------------------------------------------- shout out text move */
var shout = "<div align=\"left\" id=\"tw\"><br></div>";
document.getElementById('cpShoutoutBox').innerHTML = "<div>"+shout+"</div>";
var content = "<font color='red'>KATA2 KAMU</font>";
function twDisplayTW() {twDisplay('tw',content,0);}
loaded('tw',twDisplayTW);
var brk = '~';
var resetTime = 1;
// dun edid here
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);
}
edit dsni nya..
Code:
<font color='red'>KATA2 KAMU</font>
bisa dgnti warna nya atopun dpke blink..
jadi smbil gerak smbil kedap kedip[/quote]
thanks cheuw