ich habe dir hier ein script angegeben, dass den ladezustabd der images und embeds iin verschiedenen frames abcheckt und, wenn einige elemente nicht vollständig geladen werden sie erneut initialisiert:
function lade_check() {
summe = 0;
if (flag == 0)
{
for(x = 0; x < parent.menuframe.document.images.length; ++x)
{
if(parent.menuframe.document.images[x].complete == true)
{
lade = 1;
}
else
{
geturl1 = parent.menuframe.document.images[x].src;
parent.menuframe.document.images[x].src = geturl1;
lade = 0;
}
summe = summe + lade;
y = x + 1;
}
for(w = 0; w < parent.topframe.document.images.length; ++w)
{
if(parent.topframe.document.images[w].complete == true)
{
lade = 1;
}
else
{
geturl2 = parent.topframe.document.images[x].src;
parent.topframe.document.images[x].src = geturl2;
lade = 0;
}
summe = summe + lade;
z = w + 1;
}
for(s = 0; s < parent.spaceframe.document.images.length; ++s)
{
if(parent.spaceframe.document.images[s].complete == true)
{
lade = 1;
}
else
{
geturl3 = parent.spaceframe.document.images[s].src;
parent.spaceframe.document.images[s].src = geturl3;
lade = 0;
}
summe = summe + lade;
t = s + 1;
}
for(v = 0; v < document.embeds.length; ++v)
{
if(document.embeds[v].PlayState == 0)
{
lade = 1;
}
else
{
geturl4 = document.embeds[v].src;
document.embeds[v].src = geturl4;
lade = 0;
}
summe = summe + lade;
u = v + 1;
}
if (summe != eval(y+z+u+t))
{
window.setTimeout("lade_check()",5000);
flag = 0;
}
else {
flag = 1;
}
}
if (flag == 1)
{
if (document.all)
{
parent.topframe.deckel.style.visibility = 'hidden';
deckel.style.visibility = 'hidden';
parent.spaceframe.deckel.style.visibility = 'hidden';
parent.contentframe.location.href = 'welcome.html';
parent.gbrwavframe.location.href = 'bgrwav.html';
}
else if (document.layers)
{
eval('parent.menuframe.document.layers['deckel']').visibility = 'hide';
eval('parent.topframe.document.layers['deckel']').visibility = 'hide';
}
}
}
ich hoffe es hilft dir weiter, wenn du fragen has, dann mail !