Teks Roller Coaster

Demo :




Cara membuatnya

Dari Dashboard >> Design >> Edit HTML.


Penempatannya
dibawah <body>
........
diatas </body>

<script type='text/javascript'>
//<![CDATA[

/*
Roller Coaster Script- By JavaScript Kit
http://www.javascriptkit.com/script/script2/roller.shtml
*/

var fs=1
var direction="right"
function rollertext(whichone){
var thetext=whichone
for (i=0;i<thetext.length;i++){
document.write(thetext.charAt(i).fontsize(fs))

if (fs<7&&direction=="right")
fs++
else if (fs==7){
direction="left"
fs--
}
else if (fs==1){
direction="right"
fs++
}
else if (fs>1&&direction=="left")
fs--

}
}
//Change below text to your won
rollertext("Ini adalah Teks Roller Coaster")

//]]>
</script>

Teks berwarna merah, ganti dengan teks anda !.




Credit : JavaScript Kit

Alhamdulillah

0 comments:


Posting Komentar


Creative Commons License
Teks Roller Coaster by Nano Yulianto is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at http://nanoyulianto.blogspot.com/2011/01/teks-roller-coaster.html.
Permissions beyond the scope of this license may be available at http://nanoyulianto.blogspot.com/.