Click to See Complete Forum and Search --> : should be easy but!!!


qnctv.com
11-27-2002, 12:07 PM
I have a slide show working @



http://qnctv.com/preacher/slide.htm



but I want to be able to get the correct sizes for the pictures.



I have attempted an "if else" condition but it doesn't work.



if thisPic = ("http://qnctv.com/preacher/sofa.jpg","http://qnctv.com/preacher/cow.jpg","http://qnctv.com/preacher/hill.jpg","http://qnctv.com/preacher/luge.jpg","http://qnctv.com/preacher/train.jpg") {document.myPicture.src(height="300" width="400")=myPix[thisPic]} else {document.myPicture.src(height=400 width=300)=myPix[thisPic]} document.myPicture.src=myPix[thisPic]



there is also a specification in the body width height etc... but the idea would be to define for the pictures.



Can you have a look it is very tiny. it is in Javascript



full source @



http://qnctv.com/preacher/slidesize.htm



can anyone help

Zach Elfers
11-29-2002, 08:55 PM
Your site isn't working.

Paco Zarabozo
11-30-2002, 03:36 AM
The best way to manage dynamic pictures when they have different sizes, is NOT SPECIFYING the width and height values. That way, the browser takes automatically the real width and height of every picture. Use only:

<img src="path/img.ext" border="0">

Paco.

qnctv.com
12-02-2002, 04:56 AM
Thanks for the info I have used switch and case on the advise however it is still buggy the new page is.

got to slide show & view source (http://qnctv.com/preacher/pig.htm)

The pictutures resize but on a size change the old picture is still left behind the new one and the first picture is only shown once at the start not as a part of the loop.

Can you help?

Quincy