displaying a list of pictures?

D

David. E. Goble

Hi all;

I have this list of pictures;

<script type="text/javascript">
var picssigs = new
Array("sigs/finished1.jpg","sigs/foghorn.jpg","sigs/motto.jpg","sigs/sig.jpg","sigs/SWAT.jpg","sigs/title.gif");
var pictsigs = Math.round(Math.random()*(picssigs.length-1));
for (var i=0; i<picssigs.length; i++) {
var imgsigs = new Image();
imgsigs.src = picssigs;
}

How do I display these pictures like;

<pic1> <pic2> <pic3> ...etc...
<pic4> <pic5> ...etc...

Regards David. E. Goble
http://degoble.customer.netspace.net.au
degoble[AT]netspace.net.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223
 
R

Randy Webb

David. E. Goble said:
Hi all;

I have this list of pictures;

<script type="text/javascript">
var picssigs = new
Array("sigs/finished1.jpg","sigs/foghorn.jpg","sigs/motto.jpg","sigs/sig.jpg","sigs/SWAT.jpg","sigs/title.gif");
var pictsigs = Math.round(Math.random()*(picssigs.length-1));
for (var i=0; i<picssigs.length; i++) {
var imgsigs = new Image();
imgsigs.src = picssigs;
}

How do I display these pictures like;

<pic1> <pic2> <pic3> ...etc...
<pic4> <pic5> ...etc...



var myVar = '';
for (var i=0; i<picssigs.length; i++) {
myVar += '<img src="'+picssigs+'">
}

document.write(myVar)
 
D

David. E. Goble

David. E. Goble said:
Hi all;

I have this list of pictures;

<script type="text/javascript">
var picssigs = new
Array("sigs/finished1.jpg","sigs/foghorn.jpg","sigs/motto.jpg","sigs/sig.jpg","sigs/SWAT.jpg","sigs/title.gif");
var pictsigs = Math.round(Math.random()*(picssigs.length-1));
for (var i=0; i<picssigs.length; i++) {
var imgsigs = new Image();
imgsigs.src = picssigs;
}

How do I display these pictures like;

<pic1> <pic2> <pic3> ...etc...
<pic4> <pic5> ...etc...



var myVar = '';
for (var i=0; i<picssigs.length; i++) {
myVar += '<img src="'+picssigs+'">
}

document.write(myVar)

Ok! How do I get the pics display in

<h1>sigs</h1>
<table border="1">
<tr>
<td> <-- Here --> </td>
</tr>
</table>

Regards David. E. Goble
http://degoble.customer.netspace.net.au
degoble[AT]netspace.net.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223
 
R

Random

<h1>sigs</h1>
<table border="1">
<tr>
<td>
<script>
var myVar = '';
for (var i=0; i<picssigs.length; i++)
myVar += '<img src="'+picssigs+'">';

document.write(myVar);
</script>
</td>
</tr>
</table>

?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top