How do you...

View previous topic View next topic Go down

Solved How do you...

Post by Martin on Tue Mar 30, 2010 5:27 pm

How do you add a banner jumble like on advertise hotspot?
avatar
Martin
Admin

Warning Bar : 5/5
Posts : 153
Join date : 2010-03-30
FR Credits : 95

View user profile

Back to top Go down

Solved Re: How do you...

Post by Joel on Tue Mar 30, 2010 6:21 pm

Next time, provide a link to the forum incase someone else wants to find out how too;)

Code:
<script LANGUAGE="Javascript">
var theImages = new
Array()

//Random-loading images
theImages[0] = 'IMAGE URL 1'
theImages[1]
 = 'IMAGE URL 2'
theImages[2] = 'IMAGE URL 3'
theImages[3] =
'IMAGE URL 4'

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 ="link.html"><img src="'+theImages[whichImage]+'" border=0
width=452 height=181></a>');
}
else if(whichImage==1){
document.write('<a
 href ="link.html"><img src="'+theImages[whichImage]+'" border=0
width=452 height=181></a>');
}
else if(whichImage==2){
document.write('<a
 href ="link.html"><img src="'+theImages[whichImage]+'" border=0
width=452 height=181></a>');
}
else if(whichImage==3){
document.write('<a
 href ="link.html"><img src="'+theImages[whichImage]+'" border=0
width=452 height=181></a>');
}
else if(whichImage==4){
document.write('<a
 href ="link.html"><img src="'+theImages[whichImage]+'" border=0
width=452 height=181></a>');
}

}

</script>



<script>showImage();</script>

___________________________________________________________________________________________________
avatar
Joel
Admin

Warning Bar : 5/5
Posts : 239
Join date : 2010-03-28
Age : 20
Location : Singapore
FR Credits : 276

View user profile http://www.advertisehotspot.com/forum.htm

Back to top Go down

Solved Re: How do you...

Post by Martin on Tue Mar 30, 2010 6:59 pm

No problem and thanks
avatar
Martin
Admin

Warning Bar : 5/5
Posts : 153
Join date : 2010-03-30
FR Credits : 95

View user profile

Back to top Go down

Solved Re: How do you...

Post by Joel on Tue Mar 30, 2010 7:03 pm

martin2201 wrote:No problem and thanks

Solved-->Locked

___________________________________________________________________________________________________
avatar
Joel
Admin

Warning Bar : 5/5
Posts : 239
Join date : 2010-03-28
Age : 20
Location : Singapore
FR Credits : 276

View user profile http://www.advertisehotspot.com/forum.htm

Back to top Go down

Solved Re: How do you...

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum