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
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
Empire of Sports Europe
Would you like to react to this message? Create an account in a few clicks or log in to continue.


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

Share

1pɔɹɐsɥǝɹ


 

 Background Random Images

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


Background Random Images Empty
PostSubject: Background Random Images   Background Random Images EmptyThu Jan 24, 2013 11:50 pm

Code:
<script language="javascript" type="text/javascript">
<!-- Begin
today=new Date();
jran=today.getTime();
var number = 7;
var random_number="";
var image="";
var text_color="";
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_number = Math.ceil( (jran/(im*1.0)) *number);

if (random_number==1) {
text_color="000000";
image="http://i14.servimg.com/u/f14/16/73/75/32/x_07cd10.jpg";
}
if (random_number==2) {
text_color="000000";
image="http://i14.servimg.com/u/f14/16/73/75/32/9453hi10.jpg";
}
if (random_number==3) {
text_color="000000";
image="http://i14.servimg.com/u/f14/16/73/75/32/0210.jpg";
}
if (random_number==4) {
text_color="000000";
image="http://i14.servimg.com/u/f14/16/73/75/32/x_07cd10.jpg";
}
if (random_number==5) {
text_color="000000";
image="http://i14.servimg.com/u/f14/16/73/75/32/9453hi10.jpg";
}
if (random_number==6) {
text_color="000000";
image="http://i14.servimg.com/u/f14/16/73/75/32/0210.jpg";
}
if (random_number==7) {
text_color="000000";
image="http://i14.servimg.com/u/f14/16/73/75/32/9453hi10.jpg";
}
document.open();
document.write("<BODY BACKGROUND='"+image+"' TEXT='"+text_color+"'>");
// End -->
</script>





As an alternative to background colors and random background colors, JavaScript allows you to have random background images. Just take a look at the background of this page then hit reload.
Reload page for another background.
Step 1: Add the below code to the body section of your page.
Step 2: The script uses six images as part of its interface. You can create your own
Back to top Go down
 

Background Random Images

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

 Similar topics

-
» Slideshow background
» Background Fader
» Background Scroller
» Rain background
» Turn on/off background

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