www.webdeveloper.com
Results 1 to 4 of 4

Thread: should be easy but!!!

  1. #1
    Join Date
    Nov 2002
    Posts
    2

    Question should be easy but!!!

    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
    Qnctv.com
    for the love of live...

  2. #2
    Join Date
    Nov 2002
    Posts
    631
    Your site isn't working.

  3. #3
    Join Date
    Nov 2002
    Location
    Mexico City
    Posts
    52
    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.

  4. #4
    Join Date
    Nov 2002
    Posts
    2
    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

    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
    Qnctv.com
    for the love of live...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles