Forum Rescue
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do you...

2 posters

Go down

Solved How do you...

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

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

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

Back to top Go down

Solved Re: How do you...

Post by Joel 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>
Joel
Joel
Admin

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

http://www.advertisehotspot.com/forum.htm

Back to top Go down

Solved Re: How do you...

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

No problem and thanks
Martin
Martin
Admin

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

Back to top Go down

Solved Re: How do you...

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

martin2201 wrote:No problem and thanks

Solved-->Locked
Joel
Joel
Admin

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

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

Back to top


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