ritschmanhard: Opera verändert bildgröße nicht

Beitrag lesen

Hi Steffen!

Ja, ist so. Mit Schleife:

  
var glob_temp;  
  
function checker()  
{  
  if (!glob_temp.complete)  
     window.setTimeout("checker()",100);  
  else  
  {  
     //dein weiterer Code zur behandlung von glob_temp  
     glob_temp=null;  
  }  
}  
  
function load(index)  
{  
  if (glob_temp==null)  
  {  
       glob_temp=new Image();  
       glob_temp.src="foo["+index+"].png";  
       index++;  
       checker();  
  }  
  if (index<10) //indices from 0-9  
     window.setTimeout("load("+index+")",100);  
}  
  
function initLoop()  
{  
   glob_temp=null;  
   load(0);     //indices from 0-9  
}  
  
initLoop();  

Grüße,
Richard