
Kalau u all paham apa maksud yang aku ingin terangkan ini....u all leh tengok picture itu...script ini membolehkan lebih kurang 10 atau lebih ayat yang boleh dipamerkan diside-bar...Sangat mudah dan simple je caranya... aku amik scriptnya di web ini
CARANYA :
1 - Buka LAYOUT > PAGE ELEMENT > ADD GADGET > HTML/JAVASCRIPT
2 - COPY script dibawah ini dan PASTEkan di gadget itu.
------------------------------------------------------------------------------------------------------
<h3 class="module"><span class="module-2"><span class="module-3"><span class="color">Mutiara</span> Kata</span></span></h3>
<tr>
<td valign="top" class="isi"><center><form name="news">
<textarea rows="7" cols="18" name="news2" wrap="virtual"></textarea>
</form></center>
<script language="JavaScript">
//Typing Text (DHTML) v1 (Sunday, April 15th, 2001)
//Diprogramkan oleh: fatehwaharp
//Email: fatehwaharp@gmail.com
//Visit http://zahazan.net for this script
var newsText = new Array();
newsText[0] = "AYAT YANG HENDAK DITULIS ";
newsText[1] = "AYAT YANG HENDAK DITULIS "
newsText[2] = "AYAT YANG HENDAK DITULIS";
newsText[3] = "AYAT YANG HENDAK DITULIS";
newsText[4] = "AYAT YANG HENDAK DITULIS";
newsText[5] = "AYAT YANG HENDAK DITULIS";
newsText[6] = "AYAT YANG HENDAK DITULIS"
newsText[7] = "AYAT YANG HENDAK DITULIS";
newsText[8] = "AYAT YANG HENDAK DITULIS";
newsText[9] = "AYAT YANG HENDAK DITULIS";
newsText[10] = "AYAT YANG HENDAK DITULIS";
var ttloop = 1; // Repeat forever? (1 = True; 0 = False)
var tspeed = 70; // Typing speed in milliseconds (larger number = slower)
var tdelay = 2000; // Time delay between newsTexts in milliseconds
// ------------- NO EDITING AFTER THIS LINE ------------- \\
var dwAText, cnews=0, eline=0, cchar=0, mxText;
function doNews() {
mxText = newsText.length - 1;
dwAText = newsText[cnews];
setTimeout("addChar()",1000)
}
function addNews() {
cnews += 1;
if (cnews <= mxText) {
dwAText = newsText[cnews];
if (dwAText.length != 0) {
document.news.news2.value = "";
eline = 0;
setTimeout("addChar()",tspeed)
}
}
}
function addChar() {
if (eline!=1) {
if (cchar != dwAText.length) {
nmttxt = ""; for (var k=0; k<=cchar;k++) nmttxt += dwAText.charAt(k);
document.news.news2.value = nmttxt;
cchar += 1;
if (cchar != dwAText.length) document.news.news2.value += "_";
} else {
cchar = 0;
eline = 1;
}
if (mxText==cnews && eline!=0 && ttloop!=0) {
cnews = 0; setTimeout("addNews()",tdelay);
} else setTimeout("addChar()",tspeed);
} else {
setTimeout("addNews()",tdelay)
}
}
doNews()
</script></td></tr>
----------------------------------------------------------------------------------------------------------
note : Kalau hendak tambah berapa banyak word yang hendak ditunjukkan...juz tambah je yang kaler biru itu sebanyak mungkin...
Kalau hendak tambah kelajuan...juz besarkan digit yang kaler hijau itu..
3- SAVE
Wallah...dah siap...selamat mencuba .. :O
SeGaLa TutOriaL iNi AdaLaH Di"CeDOk" Dari PeLBaGai bLoG YaNg SeLaMa iNi aKu guNa DaN cuBa...aKu Buat bLoG tuToriaL aDaLaH HeNdak berkOngSi iLmu YanG TeLah aKu PeLaJari...GuNaLaH deNGan BetuL..TeriMa KaSiH KePaDa OwNer2 bLoG YaNG TuToriaL aKu TeLah CedOk....