»
EnglishFrenchVietnamese

Print - Dynamic Scroller I - JavaScriptBank.com

Full version: jsB@nk » Text » Animation » Dynamic Scroller I
URL: https://www.javascriptbank.com/dynamic-scroller-i.html

Dynamic Scroller I © JavaScriptBank.comA DHTML Scroller. Nice for adds, news, or just to spice up your site. Works in Internet Explorer 5.+, Netscape 7.+, Mozilla 1.2+, Mozilla FireFox 0.8.

Full version: jsB@nk » Text » Animation » Dynamic Scroller I
URL: https://www.javascriptbank.com/dynamic-scroller-i.html



CSS
<STYLE type=text/css>BODY {COLOR: #00ff00; BACKGROUND-COLOR: black; TEXT-ALIGN: center}SPAN {FONT-SIZE: 40px; FILTER: dropshadow(color=blue); VISIBILITY: hidden; WIDTH: 10px; POSITION: relative; HEIGHT: 10px}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language=JavaScript type=text/javascript><!--var T=40; // - 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"; } span.onmouseover=mOver_Richard; span.onmouseout=mOut_Richard; 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>";} }}function HUCKO(){location.href="#";}var cnt=0,cntII=1,cntIII=text.length-1;cntIV=text.length-2,sCount=0,vCount=0,gvCount=0;function modifySpans(){ if(cnt<text.length) {  document.getElementById('sid'+cnt).style.visibility="visible";cnt+=2; } else if(cntII<text.length) {  document.getElementById('sid'+cntII).style.visibility="visible";cntII+=2; } else if(cntIII>=0) {  document.getElementById('sid'+cntIII).style.visibility="hidden";  cntIII-=2; }  else if(cntIV>=0) {  document.getElementById('sid'+cntIV).style.visibility="hidden";  cntIV-=2; } else if(sCount<text.length) {   document.getElementById("sid"+sCount).style.visibility="visible";   document.getElementById("sid"+sCount).style.fontSize=50; sCount++; } else if(vCount<text.length&&gvCount<2) {  document.getElementById('sid'+vCount).style.visibility="hidden";vCount+=1; } else {   cnt=0;cntII=1;sCount=0;vCount=0;gvCount+=1; if(RHucko1<1) {   cntIII=text.length-1; T=30; // - Timer is Modified }RHucko1+=1; } setTimeout("modifySpans();",T);}function mOver_Richard(){ var spans=document.getElementsByTagName("span"); for(var x=0;x<spans.length;x++)  spans[x].style.color="#ffffff";}function mOut_Richard(){  var spans=document.getElementsByTagName("span"); for(var x=0;x<spans.length;x++)  spans[x].style.color="#00ff00";}//--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->