1 banner jumble --adding slots-- Sun Apr 18, 2010 1:54 pm
Joel
Registered Member
Hello. Sanket provided me codes for a banner jumble. I edited it accordingly.
Its currently:
There's only 5 slots available. I have alot of requests pending. May i know how do i add slots? I want to add another 5-10 slots.
Its currently:
- Code:
<br><div align="center">
<script language="JavaScript">
var theImages = new Array()
//Random-loading images
theImages[0] = 'http://i10.servimg.com/u/f10/14/40/03/60/vhog310.gif'
theImages[1] = 'http://i39.tinypic.com/f9o8ba.jpg'
theImages[2] = 'http://i526.photobucket.com/albums/cc342/pikachupalooza/newbanner.png'
theImages[3] = 'http://i526.photobucket.com/albums/cc342/pikachupalooza/banner-1-1.gif'
theImages[4] = 'http://i526.photobucket.com/albums/cc342/pikachupalooza/rsz_rsz_hogwartz-1-adv-htspt.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
if(whichImage==0){
document.write('<a href ="http://dungeons.forumotion.com/"><img src="'+theImages[0]+'" border=0 width=452 height=135></a>');
}
else if(whichImage==1){
document.write('<a href ="http://www.promotion-planet.net/"><img src="'+theImages[1]+'" border=0 width=460 height=120></a>');
}
else if(whichImage==2){
document.write('<a href ="http://eternalduel.darkbb.com/"><img src="'+theImages[2]+'" border=0 width=452 height=135></a>');
}
else if(whichImage==3){
document.write('<a href ="http://starsurfer.darkbb.com/"><img src="'+theImages[3]+'" border=0 width=452 height=181></a>');
}
else if(whichImage==4){
document.write('<a href ="http://hogwartz.5forum.net/"><img src="'+theImages[4]+'" border=0 width=452 height=135></a>');
}
}
</script>
<script>showImage();</script>
<br><font size="3"><font size="2"><br><br></font></font></div>
<style>
div.pre{
background:#f9f9f9;
border:1px solid #cacaca;
position:fixed;
width: 800px;
top: auto;
right: 0;
margin: 0 auto;
bottom: 0;
left: 0;"
z-index:1000;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
height:25px;
}
</style>
There's only 5 slots available. I have alot of requests pending. May i know how do i add slots? I want to add another 5-10 slots.