Full version: jsB@nk » Scrollers » Horizontal scroller » Maquee Scroller effect
URL: https://www.javascriptbank.com/maquee-scroller-effect.html
This JavaScript scrolls your text on the webpage as marquee tag.
Full version: jsB@nk » Scrollers » Horizontal scroller » Maquee Scroller effect
URL: https://www.javascriptbank.com/maquee-scroller-effect.html
<script type="text/javascript">//Customize your message here. Use any HTML desired:var themsg='<span style="font:italic 22px Arial;color:red;"><b><a href="http://JavaScriptBank.com/" target="_new">JavaScriptBank.com</a> - Bank of over 2000+ free JavaScripts</b></span>'var speed=6 //speed of scroller (1-10 or more)var loops=2 //specify number of times message scrolls across screen (an integer or "infinite")function populatescroller(){var windowwidth=iecompattest().clientWidthdocument.getElementById("alertit").innerHTML=themsgdocument.getElementById("alertit").style.width=windowwidthdocument.getElementById("alertit").scrollAmount=speeddocument.getElementById("alertit").scrollDelay=20document.getElementById("alertit").loop=loopsdocument.getElementById("alertit").onfinish=function(){document.getElementById("alertit").style.visibility="hidden"}}function iecompattest(){return (document.compatMode!="BackCompat")? document.documentElement : document.body}if (document.all && document.getElementById){window.onload=populatescrollerwindow.onresize=populatescroller}</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<marquee id="alertit" style="position:absolute;left:0px;top:0;background-color:#FFFFE6" onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=speed"></marquee><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->