Problem with my advertising code (banners) in the Footer

Pedro Rosario

Newbie
Joined
Apr 24, 2018
Messages
17
Reaction score
2
Hey guys
I have a problem with the .JS code of the advertising banners. You see, in my theme I have only one box to add up to 4 different JS 300 x 250 advertising codes. But when I add the 4 codes they appear VERTICALLY, that is, one over the other. A long time ago a friend added with a little code, it seems to me it was something like <----> between each .JS and with that the point was fixed that I changed the web and there I lost that code.
Attached image to clarify the matter.
What can I do, how to solve this problem?
Thank you
ads footer.jpg
 
Try this out

Code:
<center><script language="JavaScript1.1" type="text/javascript">
<!-- 
{
gfx=new Array()
wdh=new Array()
hgt=new Array()
lnk=new Array()

gfx[0]="Image 1"
gfx[1]="Image 2"
gfx[2]="Image 3"
gfx[3]="Image 4"

nk[0]="Link 1"
nk[1]="Link 2"
nk[2]="Link 3"
nk[3]="Link 4"

wdh[0]="300"
wdh[1]="300"
wdh[2]="300"
wdh[3]="300"

hgt[0]="250"
hgt[1]="250"
hgt[2]="250"
hgt[3]="250"

rnd=Math.floor(Math.random()*10)
document.writeln('<a href="'+lnk[rnd]+'"><IMG SRC="'+gfx[rnd]+'"  border=0 width='+wdh[rnd]+' height='+hgt[rnd]+'><\/a>')
}
//-->
</script></center>
 
Back
Top