»
EnglishFrenchVietnamese

Print - Animated Text script - JavaScriptBank.com

Full version: jsB@nk » Text » Animation » Animated Text script
URL: http://www.javascriptbank.com/animated-text-script.html

Animated Text script © JavaScriptBank.comThis JavaScript makes the animated text on your webpages.

Full version: jsB@nk » Text » Animation » Animated Text script
URL: http://www.javascriptbank.com/animated-text-script.html



CSS
<style type="text/css"><!--#mover {position: absolute; left: 5px; top: 5px; font-size:36px}--></style><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<script type="text/javascript" language="Javascript"><!-- Hide script from older browsersfirstTime = trueif (document.getElementById) {stdBrowser = true}else {stdBrowser = false}function moveIt() {if (firstTime) {if (stdBrowser) {moverObj = document.getElementById("mover").stylemoverObj.top = "5px"moverObj.left = "5px"}if (document.all) {maxWidth = document.body.clientWidth-300}else {maxWidth = window.innerWidth-300}firstTime = false}if (stdBrowser) {topPos = parseInt(moverObj.top) + 2leftPos = parseInt(moverObj.left) + 2moverObj.top = topPos + "px"moverObj.left = leftPos + "px"}else {document.mover.top += 2document.mover.left += 2leftPos = document.mover.left}if (leftPos < maxWidth) {setTimeout("moveIt()",20)}}// End hiding script --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload="moveIt()"><div id="mover">On the road again...</div></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->