Version compl�te: jsB@nk » Texte » Animation » Roller Coaster Texte
URL: https://www.javascriptbank.com/roller-coaster-text-script.html
Roller Coaster du texte est un texte accrocheur Effect. Check It Out! C'est une montagne russe d'effet des textes de script ... tout mettre du texte à l'intérieur de celui-ci, et le regarder diapositive.
Version compl�te: jsB@nk » Texte » Animation » Roller Coaster Texte
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-->