# Random images

**URL:** <https://forum.kirupa.com/t/random-images/20875>\
**Category:** flash\
**Created:** [May 14, 2003, 10:39am UTC](https://forum.kirupa.com/t/random-images/20875 "2003-05-14T10:39:40Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheOrangeOne](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheOrangeOne](https://forum.kirupa.com/u/TheOrangeOne)\
**Post date:** [May 14, 2003, 10:39am UTC](https://forum.kirupa.com/t/random-images/20875/1 "2003-05-14T10:39:40Z")

</div>

Sorry, i posted this in the “server/scripting” section, but no-one is browsing it and i want an answer fairly soon (im an impatient bugga aint I?) can you guys help?

im gonna be honest - I know virtually nothing about scripting etc and im finding hard to learn also.

I was wondering if anyone knew where i can get a script from to randomly load images into my page from a set directory. I want the images to load into a specific tablecell.

Any help (any at all) would be greatly appreciated.

Thanks in advance 🙂

🔗[COLOR=orange]the orange one[/COLOR] 🔗

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 10:42am UTC](https://forum.kirupa.com/t/random-images/20875/2 "2003-05-14T10:42:09Z")

</div>

What language? JavaScript?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 10:44am UTC](https://forum.kirupa.com/t/random-images/20875/3 "2003-05-14T10:44:03Z")

</div>

any that work! I imagine javascript would be the easiest. Im sorry, im useless when it comes to HTML/JAVA etc. 😊

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 10:46am UTC](https://forum.kirupa.com/t/random-images/20875/4 "2003-05-14T10:46:22Z")

</div>

OK, here’s a script of mine that works…

```php

function random_imglink(){
var myimages=new Array()
myimages[1]="image1.gif"
myimages[2]="image2.gif"
myimages[3]="image3.gif"
myimages[4]="image4.gif"
myimages[5]="image5.gif"
myimages[6]="image6.gif"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" border=0>')
}
random_imglink()
</script>
 

```

Just put that in the cell you want the image to appear in. You can put as many images into the array as you like. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 10:53am UTC](https://forum.kirupa.com/t/random-images/20875/5 "2003-05-14T10:53:06Z")

</div>

thanks, thats amazing! (im easily impressed by scripting) You are a wealth of knowledge! Why can’t i meet girls like you where i live? (most girls in my area are of the “single-mum-at-14” type)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 11:00am UTC](https://forum.kirupa.com/t/random-images/20875/6 "2003-05-14T11:00:09Z")

</div>

What can I say, I’m a geek. 🙂 Been programming computers since I was 14. 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 11:07am UTC](https://forum.kirupa.com/t/random-images/20875/7 "2003-05-14T11:07:50Z")

</div>

people always say that “one day women will inherit the earth”

People have also said that “geeks shall inherit the earth”.

I guess that makes you one of the number one contenders for world dictator =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 11:14am UTC](https://forum.kirupa.com/t/random-images/20875/8 "2003-05-14T11:14:34Z")

</div>

Result. :beam:

It’s quite sad really, I was the only girl in my school to take the Computer Science GCSEs and A Level. And there were only three of us in my University course on Programming. :sigh:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 11:37am UTC](https://forum.kirupa.com/t/random-images/20875/9 "2003-05-14T11:37:15Z")

</div>

kinda makes you feel special though?

Its good you stuck with it. I had a girl in my engineering class (now one of my best friends), but she couldn’t hack it cos she was surrounded by lads all day.

We need more women in engineering dammit! (and programming/webdesign hee hee!)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 11:41am UTC](https://forum.kirupa.com/t/random-images/20875/10 "2003-05-14T11:41:11Z")

</div>

I kinda liked being surrounded by all those lads. 😛 In fact most of the guys from my A Level course are still my best mates now. We all play football and that together. 🙂

They guys themselves were all cool with having a girlie in their class, it was the teachers that thought I was weird. 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 11:43am UTC](https://forum.kirupa.com/t/random-images/20875/11 "2003-05-14T11:43:49Z")

</div>

teachers hate non-conformists. Its one of the laws of the universe.  
hmm… football - knowlege of the offside rule and the 4-4-2 formation AND you know about computers. You’re a lad in disguise ain’t ya?😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 11:46am UTC](https://forum.kirupa.com/t/random-images/20875/12 "2003-05-14T11:46:01Z")

</div>

Lemme check… 😛

Nope, I’m a girl. I just like and do bloke-y things. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 12:10pm UTC](https://forum.kirupa.com/t/random-images/20875/13 "2003-05-14T12:10:41Z")

</div>

he heh! thats cool. Im surprised you need to check though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2003, 5:00am UTC](https://forum.kirupa.com/t/random-images/20875/14 "2003-07-08T05:00:50Z")

</div>

well i dunno if its wierd or not, but i started javascripting at the age of 10 and im still only 12 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2003, 5:05am UTC](https://forum.kirupa.com/t/random-images/20875/15 "2003-07-08T05:05:48Z")

</div>

graphicslash, your footer is a bit large, isnt it;)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2003, 6:04am UTC](https://forum.kirupa.com/t/random-images/20875/16 "2003-07-08T06:04:09Z")

</div>

O.o, yeah, i never knew there were footer guidelines… hehe, ill change it soon
