Empire of Sports Europe
▓░░▓░░░▓░░▓▓▓░▓░░░▓▓▓░▓▓▓▓▓░░▓▓░░░▓▓░░▓▓▓░░░░░░
▓░▓░▓░░▓░░▓░░░▓░░░▓░░░▓░░░▓░░▓░▓░▓░▓░░▓░░░░░░░░
▓▓░░░▓░▓░░▓▓░░▓░░░▓░░░▓░░░▓░░▓░░▓░░▓░░▓▓▓░░░░░░
▓░░░░░▓▓░░▓░░░▓░░░▓░░░▓░░░▓░░▓░░░░░▓░░▓░░░░░░░░
▓░░░░░░▓░░▓▓▓░▓▓▓░▓▓▓░▓▓▓▓▓░░▓░░░░░▓░░▓▓▓░░░░░░
Hello and welcome to EOS-EU - First English Speaking Fansite of Empire of Sports!
Register to obtain full access to the website.
We hope you will enjoy the portal.

EOS-EU Team


Welcome to the first English Speaking Community FanSite of Empire of Sports :)
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsHOMEPORTALFORUMLog inRegister

Share | 

1pɔɹɐsɥǝɹ


 

 Background Scroller

View previous topic View next topic Go down 
AuthorMessage
Jo_Oker
Administrator
Administrator
avatar


PostSubject: Background Scroller   Thu Jan 24, 2013 11:21 pm

Code:
<script language="JavaScript">
<!-- Begin
document.body.background="http://i14.servimg.com/u/f14/16/73/75/32/marble10.gif";
var backgroundOffset = 0;
var bgObject = eval('document.body');
function scrollBG(maxSize) {
backgroundOffset = backgroundOffset + 1;
if (backgroundOffset > maxSize) backgroundOffset = 0;
bgObject.style.backgroundPosition = "0 " + backgroundOffset;
}
var ScrollTimer = window.setInterval("scrollBG(300)", 70);
// End -->
</script>


The background image is actually scrolled on the page
Step 1: Add the below code to the BODY section of your page.
Step 2: The script uses an image as part of its interface. You can create your own.
Not working for Firefox.
Back to top Go down
View user profile
 

Background Scroller

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» BACKGROUND CHECKS FOR NOOBS
» Lagging + Background
» Background Music
» The Carnival of Monkey Island: fanproject needs background artists!
» How to add a background with Photofiltre

Permissions in this forum:You cannot reply to topics in this forum
Empire of Sports Europe :: Java Script-