Version compl�te: jsB@nk » Texte » Animation » Dynamic II Scroller
URL: https://www.javascriptbank.com/dynamic-scroller-ii.html
Un DHTML Scroller. Nice ajoute, nouvelles, ou tout simplement pour agrémenter votre site. Travaux dans Internet Explorer 5. +, Netscape 7. +, Mozilla 1.2 +, Mozilla FireFox 0.8.
Version compl�te: jsB@nk » Texte » Animation » Dynamic II Scroller
URL: https://www.javascriptbank.com/dynamic-scroller-ii.html
<STYLE type=text/css>BODY {COLOR: white; BACKGROUND-COLOR: black; TEXT-ALIGN: center}SPAN {FILTER: dropshadow(xoffset=100,yoffset=100); WIDTH: 25px; HEIGHT: 20px}</STYLE><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<SCRIPT language=JavaScript type=text/javascript><!--var T=50; // - Timervar text="JavaScriptBank.com"; // - Text to Modify (Variable Length String)var finds=new Array();window.onload=main;function main(){ createSpans(); findPipe(); replacePipe(); modifySpans();}function createSpans(){for(var x=0;x<text.length;x++){ var count=x+1; var span=document.createElement('span'); span.id='sid'+x; span.innerHTML=text.substring(count,count-1); with(span.style) { fontWeight="bold"; fontSize=40; } span.onclick=HUCKO; document.body.appendChild(span);}}var RHucko1=0;function findPipe(){ for(var x=0;x<text.length;x++) { if(x==0) finds[x]=text.lastIndexOf(' ');else finds[x]=text.lastIndexOf(' ',finds[x-1]-1); }}function replacePipe(){var spans=document.getElementsByTagName('span'); for(var x=0;x<finds.length;x++) { if(finds[x]==-1){}else{ spans[finds[x]].innerHTML="<b style='visibility:hidden;'>_</b>";} }}var COLORS=new Array();var COLOR=new Array();COLORS=["#00ff00","red","white"];COLOR=["blue","yellow"];var i=0;function HUCKO(){location.href="#";}var cnt=0,cntII=1,cntIII=text.length-1;cntIV=text.length-2;function modifySpans(){ if(cnt<text.length) { document.getElementById('sid'+cnt).style.color=COLORS[i];cnt+=2; } else if(cntII<text.length) { document.getElementById('sid'+cntII).style.color=COLORS[i];cntII+=2; } else if(cntIII>=0) { document.getElementById('sid'+cntIII).style.color=COLOR[i]; cntIII-=2; } else if(cntIV>=0) { document.getElementById('sid'+cntIV).style.color=COLOR[i]; cntIV-=2; } else { cnt=0;cntII=1; if(i<COLORS.length-1) { i++; } if(RHucko1<1) { cntIII=text.length-1; cntIV=text.length-2; T=45; // - Timer is Modified }RHucko1+=1; } setTimeout("modifySpans();",T);}//--></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->