Implementing Height & Width with SlideShow

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Todd Cary

    Implementing Height & Width with SlideShow

    At http://209.204.172.137/christmas/slideshow_test.html , the core
    function is

    function get_ImageItemLo cation(imageNo) {
    Img.src = imageArray[imageNo];
    return (Img.src)
    }



    Following suggestions from people on this forum, I am not preloading all
    of the images. Instead, I just have the location of the images stores
    in the array.

    What I am not sure of is how to implement the <IMG> Height and Width.

    Trying to get a handle on JavaScript.....

    Todd

  • Todd Cary

    #2
    Re: Implementing Height &amp; Width with SlideShow

    Using the following seems to work, but I am not sure if this is the
    correct way to do it.

    document[place].src = new_image;
    document[place].width = imageWidth;
    document[place].height = imageHeight;



    Todd


    Todd Cary wrote:[color=blue]
    > At http://209.204.172.137/christmas/slideshow_test.html , the core
    > function is
    >
    > function get_ImageItemLo cation(imageNo) {
    > Img.src = imageArray[imageNo];
    > return (Img.src)
    > }
    >
    >
    >
    > Following suggestions from people on this forum, I am not preloading all
    > of the images. Instead, I just have the location of the images stores
    > in the array.
    >
    > What I am not sure of is how to implement the <IMG> Height and Width.
    >
    > Trying to get a handle on JavaScript.....
    >
    > Todd
    >[/color]

    Comment

    Working...