»
Tiếng AnhTiếng PhápTiếng Việt

In - Chữ di chuyển theo thanh trượt - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Chữ » Hoạt hóa » Chữ di chuyển theo thanh trượt
URL: https://www.javascriptbank.com/floating-text-script-ii.html

Chữ di chuyển theo thanh trượt © JavaScriptBank.comHiệu ứng sẽ làm cho một cụm chữ do bạn tạo ra tự động di chuyển theo các thanh trượt.

Phiên bản đầy đủ: jsB@nk » Chữ » Hoạt hóa » Chữ di chuyển theo thanh trượt
URL: https://www.javascriptbank.com/floating-text-script-ii.html



JavaScript
<script language="JavaScript"><!-- Begin// Instructions:// jmornin@gateway.net.// 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-->