I solved this by setting the width and height in the <img> . But since I use a script to generate a list of images, and they sometimes have different sizes, I used a tiny php bit to solve this problem:
function displayimage($filename) { $imgsize = getimagesize("$filename"); echo "<img src=\"$filename\" $imgsize[3] />\n"; }
$imgsize[3] is, for example, width="585" height="285" .
And then, to show all the jpg in the directory in the slide show:
<div class="slideshow"> <?php foreach (glob("*.jpg") as $filename) { displayimage($filename); } ?> </div>
Exit
<div class="slideshow"> <img src="cat.jpg" width="575" height="256" /> <img src="dog.jpg" width="475" height="350" /> <img src="frog.jpg" width="675" height="300" /> </div>
jimmy
source share