»
EnglishFrenchVietnamese

Print - Text zoomer - JavaScriptBank.com

Full version: jsB@nk » Text » Text zoomer
URL: https://www.javascriptbank.com/text-zoomer-stretch-shrink-headlines-and-text.html

Text zoomer © JavaScriptBank.comText zoomer is a cross-browser DHTML script creating a dynamic zoom effect for headlines and any text. It's much faster than any java applet. It does not need any images.

Full version: jsB@nk » Text » Text zoomer
URL: https://www.javascriptbank.com/text-zoomer-stretch-shrink-headlines-and-text.html



JavaScript
<SCRIPT language=javaScript><!-- Beginning of JavaScript -var thissize=0var step=1var maxfontsize=400var textcolor="000"var textfont="Arial"var message="JavaScriptBank.com - Bank of over 2000+ free JavaScripts"function stretch() {if (thissize<0) {step=1; thissize=0}if (thissize < maxfontsize) {if(document.all) {zoomer.innerHTML="<span style='font-family:"+textfont+";font-size:"+thissize+"px;color:"+textcolor+"'>"+message+"</span>"}if(document.layers) {document.zoomer.document.write("<span style='font-family:"+textfont+";font-size:"+thissize+"px;color:"+textcolor+"'>"+message+"</span>")document.close()}step++thissize=thissize+stepvar timer=setTimeout("stretch()",50)}else {clearTimeout(timer)var intermezzo=setTimeout("shrink()",1000)}}function shrink() {if (thissize > -0) {if(document.all) {zoomer.innerHTML="<span style='font-family:"+textfont+";font-size:"+thissize+"px;color:"+textcolor+"'>"+message+"</span>"}if(document.layers) {document.zoomer.document.write("<span style='font-family:"+textfont+";font-size:"+thissize+"px;color:"+textcolor+"'>"+message+"</span>")document.close()}if (step >= 2) {step=step-1} else{step=1}thissize=thissize-stepvar timer=setTimeout("shrink()",50)}else {clearTimeout(timer)var intermezzo=setTimeout("stretch()",1000)}}// - End of JavaScript - --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=stretch()><DIV id=zoomer style="LEFT: 10px; POSITION: absolute; TOP: 10px; VISIBILITY: visible"></DIV></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->