hey, all, i'm working on a site that does image swaps across frames. i've got the swaps working fine, the problem is that they work on a onLoad event, and if the frames load out of order (or one loads slower than the others) the images aren't drawn yet, and the swap doesn't happen (and sometimes there are errors).
what's the best way that a script can check to see if an image is swappable yet in another frame? i tried running something like:
function swapotherframe() {
if (top.framename.document.images) {
//swap the images
}
else {
setTimeout('swapotherframe();', 500);
}
}
but it never seems to hit the timeout... even if document.images is true, that doesn't mean the image i want to swap is around. any suggestions? thanks!
what's the best way that a script can check to see if an image is swappable yet in another frame? i tried running something like:
function swapotherframe() {
if (top.framename.document.images) {
//swap the images
}
else {
setTimeout('swapotherframe();', 500);
}
}
but it never seems to hit the timeout... even if document.images is true, that doesn't mean the image i want to swap is around. any suggestions? thanks!