|| Blog Suka Suka || Nelly Rosaline ||

Visitors

free counters

Membuat text seperti di ketik pada blog

Posted by : ocha_ryuk
Selamat pagi atau siang atau malam kawan blogger semua.
hari ini aku mau berbagi ilmu tentang teks yang di ketik.
Yaudah... kita langsung pelajari.
simak baik baik... 
^o^/


1. Login blog kawan
2. Rancangan
3. Tambah Gadget (HTML/JavaScript)

Copy Code berikut :

<script language="JavaScript">
var text="TULISAN KAWAN";
var delay=10;
var currentChar=1;
var destination="[none]";
function type()
{
//if (document.all)
{
var dest=document.getElementById(destination);
if (dest)// && dest.innerHTML)
{
dest.innerHTML=text.substr(0, currentChar)+"<blink>_</blink>";
currentChar++;
if (currentChar>text.length)
{
currentChar=1;
setTimeout("type()", 5000);
}
else
{
setTimeout("type()", delay);
}
}
}
}
function startTyping(textParam, delayParam, destinationParam)
{
text=textParam;
delay=delayParam;
currentChar=1;
destination=destinationParam;
type();
}
</script>
<b></b>
<div #ff0000;="" 0px;"="" 10px="" arial;="" color:="" font:="" id="textDestination" margin:="" style="background-color: white;">
</div>
<script language="JavaScript">
javascript:startTyping(text, 50, "textDestination");
</script>

Save dan selamat melihat hasilnya... bye bye

3 comments:

antok hermawan said...

langsung praktek,.
http://cobacoba-tutorial.blogspot.com/

Trio Kristian Damanik Damanik said...

Keren.. :)

X-San said...

Thanks...

Copyright © 2012 Rosa Go Blog | Hatsune Miku Theme | Designed by Nelly RosalineJ