»
EnglishFrenchVietnamese

Print - Type-writer scroller - JavaScriptBank.com

Full version: jsB@nk » Scrollers » Type-writer scroller
URL: https://www.javascriptbank.com/type-writer-scroller.html

Type-writer scroller © JavaScriptBank.comThis is a unique scroller that displays the text one-letter at a time, with the trailing 'underscore' symbol following behind, like a type writer.

Full version: jsB@nk » Scrollers » Type-writer scroller
URL: https://www.javascriptbank.com/type-writer-scroller.html



JavaScript
<script language="JavaScript"> //width of the Expander in pixels: set to your own;var dwidth=250; //height of the Expander in pixels: set to your own; var dheight=40; //speed: the higher the slower - set your own!var dspeed=100; //1.Background color: could be like: "#ffff00" or "yellow";//set it "" for no background color;var dbcolor="aqua";//Inside any message you MUST use \' in lieu of ';mesaj='Message Expander displays character by character from left to right or center out.';var jj=-1;function iens6exp(){if(jj==-1){exptxt='';iens6div.innerHTML=exptxt;}jj++;if(jj<=mesaj.length){exptxt+= mesaj.charAt(jj);iens6div.innerHTML='<div class=tajc>'+exptxt+"_"+'</div>';setTimeout("iens6exp()",dspeed);}}function ns4exp(){if(jj==-1){exptxt='';ns4div.document.write(exptxt);ns4div.document.close();}jj++;if(jj<=mesaj.length){exptxt+=mesaj.charAt(jj);ns4div.document.write('<div class=tajc>'+exptxt+"_"+'</div>');ns4div.document.close();setTimeout("ns4exp()",dspeed);}}function startexp(){if(document.getElementById){iens6div=document.getElementById('expdiv');iens6exp();}else if(document.all){iens6div=expdiv;iens6exp();}else if(document.layers){ns4div=document.ns4expb0.document.ns4expb1;ns4exp();}}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload="startexp();"><table border=1 CELLSPACING="0" align="center" CELLPADDING="0"><tr><td width=250><script language="JavaScript">if(document.all||document.getElementById){document.write('<div id="expdiv" style="position:relative;width:'+dwidth+';height:'+dheight+';background-color:'+dbcolor+';"></div>');}</script><ilayer id="ns4expb0" width=&{dwidth}; height=&{dheight}; bgcolor=&{dbcolor};><layer id="ns4expb1" width=&{dwidth}; height=&{dheight};></layer></ilayer></td></tr></table></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->