By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

Implementing Height & Width with SlideShow

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.