»
EnglishFrenchVietnamese

Print - Simple Background Scroller - JavaScriptBank.com

Full version: jsB@nk » Background » Simple Background Scroller
URL: https://www.javascriptbank.com/simple-background-scroller.html

Simple Background Scroller © JavaScriptBank.comDo you still use boring background-images? Try the new background scroller instead! It loads much faster than any java applet or background image. It's certainly more informative and impressive. And it doesn't waste any of your precious place as it entirely operates in the background. Very easy to set up and configure.

Full version: jsB@nk » Background » Simple Background Scroller
URL: https://www.javascriptbank.com/simple-background-scroller.html



CSS
<STYLE>.ticker {COLOR: #dddddd; FONT-FAMILY: Verdana; FONT-SIZE: 60px; LETTER-SPACING: 1px; POSITION: absolute}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<script language="javascript">/*     This script downloaded from www.JavaScriptBank.com     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*/<!-- Beginning of JavaScript -// Simple Background Scroller// Author: Peter Gehrig // Web Site: http://www.24fun.com var y=300var bgtickerfunction initObjects() {if (document.all) {bgticker = document.all.bgtick.stylebgticker.posLeft = 0bgticker.posTop = 400mainbody = document.all.mainbod.stylemainbody.posLeft = 0mainbody.posTop = 0}if (document.layers) {bgticker = document.bgtickbgticker.left = 0bgticker.top = 300mainbody = document.mainbodmainbody.left = 0mainbody.top = 0}scroll()}function scroll() {if (y > -200) {y--if (document.all) {bgticker.posTop = y; mainbody.posTop=0}if (document.layers) {bgticker.top = y; mainbody.top=0}}else {y=300}var timer = setTimeout('scroll()',20)}// - 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=initObjects()><DIV class=ticker id=bgtick style="z-index: -100;">Promote your site, your JavaScripts and DHTML samples and your mother-in-law's pottery shop. Our visitors - more than 500 dedicated javascripters per day - will study your ideas and rush directly to your site. Most of them are JavaScript- and DHTML-addicts seeking new ways to brush up their webpages. </DIV><DIV id=mainbod style="VISIBILITY: visible; z-index: 100;"></DIV></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->