469,625 Members | 1,059 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

Implementing Height & Width with SlideShow

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

function get_ImageItemLocation(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

Jul 20 '05 #1
1 1098
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;

http://209.204.172.137/christmas/slideshow_test.html

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

function get_ImageItemLocation(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


Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mr WZ Boson | last post: by
1 post views Thread by UnderTaker | last post: by
3 posts views Thread by Mike Mimic | last post: by
2 posts views Thread by emma.sax | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.