Loading ...
Sorry, an error occurred while loading the content.

Re: [NH] displying a message while an image is loading

Expand Messages
  • Don - HtmlFixIt.com
    ... often it is flash or javascript that runs the load bar
    Message 1 of 13 , Feb 14, 2006
    View Source
    • 0 Attachment
      Mike Breiding - Morgantown WV wrote:
      > At 09:42 PM 2/13/2006 , John Wallace wrote:
      >> Might try adding the dimensions of the pics to the img src tag.
      >> The browser will usually put the alt text in there if it doesn't have to
      >> interpet the dimensions of the pic.
      >
      > For me this seemed the most practical. I added the dimensions but still not
      > ALT or TITLE display while loading.
      >
      > I *know* I have seen this happen before.
      >
      often it is flash or javascript that runs the load bar
    • melchior prisi
      Hi Mike ... If the message is displayed in this case: depends on the browser your visitors use. To show a message to all
      Message 2 of 13 , Feb 18, 2006
      View Source
      • 0 Attachment
        Hi Mike

        ----- on 13.02.2006 17:35 Mike Breiding - Morgantown WV wrote:
        > I should have said:
        > "Is it possible to have a message display while an image is *loading*.

        If the message is displayed in this case:
        <img src="image.gif" alt="message">
        depends on the browser your visitors use.


        To show a message to all visitors you
        might try something like this:

        --------------------------------------
        <html>
        <head>
        <style type="text/css"><!--
        #adiv {
        position:relative;
        width:200px;
        height:50px;}
        #adiv img {
        display:block;
        width:200px;
        height:50px;
        position:absolute;
        left:0;top:0;
        }
        //--></style>
        </head>
        <body>

        <div id="adiv">message<img src="image.gif"></div>

        </body>
        </html>

        --------------------------------------

        position:relative for the surrounding div is needed
        to position the image relative to the div and not
        to the window.



        Regards,
        Melchior
        --
      Your message has been successfully submitted and would be delivered to recipients shortly.