Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: aw06 - elokuu 03, 2009, 07:26:31 IP

Otsikko: New Banner on refresh script
Kirjoitti: aw06 - elokuu 03, 2009, 07:26:31 IP
Im using this script and it works great, it simply refreshes images on each page reload...


<!-- begin --->
<script type="text/javascript">
var rand=Math.round(Math.random()*4);
var img=new Array(5);
img[0]="1.jpg";
img[1]="2.jpg";
img[2]="3.jpg";
img[3]="4.jpg";
img[4]="5.jpg";
document.write("<img src=\"" + img[rand] + "\" />");
</script>
<!-- End -->


Question is, how can i modify the code so that i can make each image clickable and open in a new window ??

Thanks in advance 8)
Otsikko: Re: New Banner on refresh script
Kirjoitti: aw06 - elokuu 03, 2009, 09:45:55 IP
figured it out
Otsikko: Re: New Banner on refresh script
Kirjoitti: mpompiras - elokuu 03, 2013, 12:50:04 IP
And that where can i paste it?