Coffeehouse Post

Single Post Permalink

View Thread: Any IE JScript guys?
  • User profile image
    El Bruno

    W3bbo wrote:



    images = new Image();
    images.src = imagenames;
    setTimeout('checkload(' + i + ')', i * 100);


    a small question ... I suppose you are trying to fill an array of images with images loaded from the data from the imagenames array.
    But in the previuos lines you set to the array var (images) a new kind of object (IMG) and then you fill the image. So you never fill the array ...

    maybe you can try the following lines

        for(i = 0; i < imagenames.length; i++) {    
            /*
            images = new Image();  
            images.src = imagenames;    
            setTimeout('checkload(' + i + ')', i * 100);
            */
           
            img= new Image();  
            img.src = imagenames;
            images[ i ] = img;
            setTimeout('checkload(' + i + ')', i * 100);
        } 

    for more info ... maybe you can share the complete html with us ..

    I hope this helps you

    Bye from Spain

    PS: In other browsers this works ?? I losing some part of the problem ... Perplexed