»
EnglishFrenchVietnamese

Print - Floating Text script II - JavaScriptBank.com

Full version: jsB@nk » » Floating Text script II
URL: https://www.javascriptbank.com/floating-text-script-ii.html

Floating Text script II © JavaScriptBank.comThis JavaScript code makes the text that can float depend on position of scrollbars.

Full version: jsB@nk » » Floating Text script II
URL: https://www.javascriptbank.com/floating-text-script-ii.html



JavaScript
<script language="JavaScript"><!-- Begin// Instructions:// [email protected].// First, declare the variablesvar mover = nullvar object = "menu"// Check if browser is Netscape. If it is, assign a certain value to "mover"if (navigator.appName.indexOf("Netscape") != -1) {var mover = "document.menu.top = window.pageYOffset"}// If the browser is not Netscape, assign a different value to "mover"else {var mover = "menu.style.pixelTop = document.body.scrollTop"}// Now the functionfunction check() {object = "menu"eval(mover)setTimeout("check()", 10) // The number after "check()" is in milliseconds (lower number = less lag time)}// End of the code --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload="check()"><div id="menu" style="position: relative;">JavaScriptBank.com - Bank of over 2000+ free JavaScripts</div></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->