J
John Bailo
I have a table with 2 columns, and one row.
The first column cell has navigation links.
The second column has an empty IMG tag.
When I click on a link in the first column, it runs a javascript
function that sets the value of the IMG.src to an image file.
_Problem_
In IE6, the image loads so slowly into the IMG.src tag, that it doesn't
display.
_Tests_
1) The page will work just fine in Firefox, Safari and Konqueror (Linux).
2) I added an alert to just after the .src is set, and it loads just
fine (because I give it time to load).
3) I added a wait function that pauses it -- if i set that to 1000
milleseconds (1s) then the image has time to load.
4) If I reduce the image from 100K to a very small image, it loads just
fine.
_Question_
Is there any way to test when the image has fully loaded and then have
the javascript function proceed?
The first column cell has navigation links.
The second column has an empty IMG tag.
When I click on a link in the first column, it runs a javascript
function that sets the value of the IMG.src to an image file.
_Problem_
In IE6, the image loads so slowly into the IMG.src tag, that it doesn't
display.
_Tests_
1) The page will work just fine in Firefox, Safari and Konqueror (Linux).
2) I added an alert to just after the .src is set, and it loads just
fine (because I give it time to load).
3) I added a wait function that pauses it -- if i set that to 1000
milleseconds (1s) then the image has time to load.
4) If I reduce the image from 100K to a very small image, it loads just
fine.
_Question_
Is there any way to test when the image has fully loaded and then have
the javascript function proceed?