Full version: jsB@nk » Text » Animation » Roller Coaster Text
URL: https://www.javascriptbank.com/roller-coaster-text-script.html
Roller Coaster Text is a Eye-Catching Text Effect. Check It Out! It's a roller coaster text effect script...put any text inside of it, and watch it slide.
Full version: jsB@nk » Text » Animation » Roller Coaster Text
URL: https://www.javascriptbank.com/roller-coaster-text-script.html
<SCRIPT language=JavaScript type=text/javascript><!--///////////////////////////////////////////**************************************** - Global Declarations:****************************************/window.onload=main;var message="JavaScriptBank.com";var spans=new Array();var size=12;var amount=2;var count=0,count0=0,count1=0,count2=0;var globalCount=0;var Timer=100;var T=true;/////////////////////////////////////////////////////////////////////////////////////**************************************** - Main Module****************************************/function main(){ dynamicSubstring();}/////////////////////////////////////////function dynamicSubstring(){ if(count<=message.length) { spans[count]=document.createElement('span'); spans[count].id="id"+count; with(spans[count].style) { fontSize=size;letterSpacing=2; } spans[count].innerHTML=message.substring(count-1,count); document.body.appendChild(spans[count]); count++; } else if(count0<=message.length) { with(spans[count0].style){ fontSize=size+=amount;}Timer=55;count0++; } else if(count1<=message.length) { with(spans[count1].style){ fontSize=size-=amount;}count1++; } else if(globalCount<1) { count0=0;count1=0;globalCount++; } else if (T) { Timer=500; T=false; } else { while(count2<=message.length){ with(spans[count2].style) { fontSize=size+count-1; } count2++;} } setTimeout("dynamicSubstring();",Timer);}function disable(){ return false;}document.oncontextmenu=disable;//--></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->