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ɥǝɹ


 

 Slideshow background

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


PostSubject: Slideshow background    Thu Jan 24, 2013 10:50 pm

Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var speed = 10000
var Pic = new Array()
Pic[0] = 'http://i14.servimg.com/u/f14/16/73/75/32/images12.jpg';
Pic[1] = 'http://i14.servimg.com/u/f14/16/73/75/32/hd-fan10.jpg';
Pic[2] = 'http://i14.servimg.com/u/f14/16/73/75/32/images13.jpg';
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array()
for (i = 0; i < p; i++){
  preLoad[i] = new Image();
  preLoad[i].src = Pic[i];
}
function runBGSlideShow(){
 if (document.body){
  document.body.background = Pic[j];
  j = j + 1;
  if (j > (p-1)) j=0;
  t = setTimeout('runBGSlideShow()', speed);
 }
}
window.onload= runBGSlideShow;
//  End -->
</script>


Runs an image slideshow in the background of the page, underneath the page content. Used with the accompanying style script, images are discretely positionable in the page space, just like a regular slideshow. Leave out the style script, and the slideshow runs with full page-space presentation.

Step 1: Add the below code to the HEAD section of your page.
Step 2: The script uses three images as part of its interface. You can create your own.

Tested at:Google Chrome,Firefox,IE
Back to top Go down
View user profile
 

Slideshow background

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-