Results 1 to 6 of 6

Thread: Image Loading Problem

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    metairie, la usa
    Posts
    40
    Hi,
    I am trying to create a simple toolbar with about 10 images. I have a simple table with img tags in it. The problem is once the page loads, one or many of the images at random do not come up. If I refresh the page other may not work (seems to be random.). Any ideas???

    <table>
    <tr>
    <td><img name="pic1" src="pic1"></td>
    <td><img name="pic2" src="pic2"></td>
    ect...
    </tr>
    </table>

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    um. Have you tried precaching the images?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    metairie, la usa
    Posts
    40

    Reply

    Hi,
    I was not using any routine to preload images, but I just wrote one and am still having the same problem.
    Please take a look and tell me what you think.

    <SCRIPT>
    function PreLoadImages()
    {
    var ImageList = new Array("images/newfile.gif","images/openfile.gif","images/savefile.gif","images/bold.gif","images/italic","images/underline.gif","images/cut.gif","images/copy","images/paste.gif","images/center.gif","images/right","images/left.gif");

    var PreLoader = new Array(15);
    for (x=0;x < ImageList.length;x++)
    {
    PreLoader[x] = new Image();
    PreLoader[x].src=ImageList[x];
    }
    }
    </SCRIPT>
    </head>
    <BODY onLoad="PreLoadImages();">
    <table border="1">
    <tr>
    <td><img name="img1" src="images/newfile.gif" border="0"></td>
    <td><img name="img2" src="images/openfile.gif" border="0"></td>
    <td><img name="img3" src="images/savefile.gif" border="0"></td>
    <td><img name="img4" src="images/bold.gif" border="0"></td>
    <td><img name="img5" src="images/italic.gif" border="0"></td>
    <td><img name="img6" src="images/underline.gif" border="0"></td>
    <td><img name="img7" src="images/cut.gif" border="0"></td>
    <td><img name="img8" src="images/copy.gif" border="0"></td>
    <td><img name="img9" src="images/paste.gif" border="0"></td>
    <td><img name="img10" src="images/left.gif" border="0"></td>
    <td><img name="img11" src="images/center.gif" border="0"></td>
    <td><img name="img12" src="images/right.gif" border="0"></td>
    </tr>
    </table>

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    hmm. I am no expert, but i dont see anything wrong. Perhaps you can avoid this problem by having one image with hotspots.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Try setting the height and width for the images and see what happens.

    Josh
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    metairie, la usa
    Posts
    40

    Image Loading Problem.

    I have found out that my images actually load. If you right click on a image that did not display and choose properties, it has a size, but displays the square and red X. If I right click on a picture that did not load and choose show picture, it appears. Anyone have any clue what the deal is here???


    Thanks
    Richard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width