deadlock Message Board
[ December Full List | Post A Reply ]

Re: static placeholder for animated gifs
From Dale on 13 Dec '01
replying to static placeholder for animated gifs posted by Sandy Sansing

Just wondering how many bytes this Gif is, perhaps you can
optimize the size for faster loading. I dont think too many
people would wait long for a page to load if its being help up by
the one graphic. I know 15 seconds is my wait limit, with cable
connection. You could also try something like this for loading.

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

image1 = new Image();
image1.src = "menu.gif";

image2 = new Image();
image2.src = "top.gif";

image3 = new Image();
image3.scr = "topleft.gif"

image4 = new Image();
image4.scr = "submenu.gif"

image5 = new Image();
image5.scr = "topmain.gif"

image6 = new Image();
image6.scr = "main1.gif"

image7 = new Image();
image7.scr = "right1.gif"

image8 = new Image();
image8.scr = "right2.gif"

image9 = new Image();
image9.scr = "right3.gif"

image10 = new Image();
image10.scr = "bottomleft.gif"

image11 = new Image();
image11.scr = "bottom.gif"

// End -->

</script>

>Hi...does anyone know of a way (i.e. Javascript or some slick
>trick) to display a static image "placeholder" until an animated
>GIF loads? I have an animated logo in the upper-left corner of
>my top border frame, and often the entire site can load before
>the gif can get through...
>
>Another question: Is it possible to keep the .gif from
>displaying until it is fully queued in the client's computer?
>(This is to prevent the sluggishness on the first
>revolution...subsequent revolutions use the queued temp file.)
>
>And a third query: Is there a way to specify the load order of
>graphics on a website? I would prefer (on the examples page)
>that the graphics load top-to-bottom...but sometimes they seem to
>load whenever they want.
>
>I have had one year of C++ training, so I can do *a little* Java
>programming, but if someone knows of an easier way, it would be
>greatly appreciated. Also, if you have any other comments, feel
>free to e-mail me at webmaster(at)arkansasceramics(dot)com. (I
>hate spambots.)




Your Reply

*Your name:
*Message subject:
Home page title:
Home page URL:
Email:
(if you'd like to receive automatic replies by email)