Roller text tutorial
Hi, members!
Here is a new tutorial! In this tutorial, i will show you how to get roller text.
1. Paste this code into the BODY of your HTML document:
- Code:
<SCRIPT>
/*
Roller Coaster Script-
By JavaScript Kit
Over 200+ free scripts here!
*/
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 own
rollertext("Bigsmall text!")
</SCRIPT>
2. Change "Bigsmall text!" into your own text.
3. You're done!
Demo:
http://kafs.123.st/h204-bigsmall