How to change image size with this JS code
<p>Basically, I have a page where 2 random images get generated using this script:</p>

<pre><code>&lt;script type="text/javascript"&gt;
&lt;!--
 var imlocation = "images/";
 var currentdate = 0;
 var image_number = 0;
 function ImageArray (n) {
   this.length = n;
   for (var i =1; i &lt;= n; i++) {
     this[i] = ' '
   }
 }
 image = new ImageArray(3)
 image[0] = 'image1.gif'
 image[1] = 'image2.gif'
 image[2] = 'image3.gif'
 var rand = 60/image.length
 function randomimage() {
currentdate = new Date()
image_number = currentdate.getSeconds()
image_number = Math.floor(image_number/rand)
return(image[image_number])
 }
 document.write("&lt;img src='" + imlocation + randomimage()+ "'&gt;");
//--&gt;
&lt;/script&gt;
</code></pre>

<p>and then repeated again using different variables so both images are random. I need the sizes of both images to be the same. CSS doesn't seem to be doing the trick using .img and specifying the height and width. Is there another way I could do it?</p>
