How do you...
2 posters
Page 1 of 1
How do you...
How do you add a banner jumble like on advertise hotspot?
Martin- Admin
- Warning Bar :
Posts : 153
Join date : 2010-03-30
FR Credits : 95
Re: How do you...
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>
Re: How do you...
No problem and thanks
Martin- Admin
- Warning Bar :
Posts : 153
Join date : 2010-03-30
FR Credits : 95
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|