[Javascript] content preloader
Brian Gordon
microsteel at adelphia.net
Mon Jan 19 08:45:30 CST 2004
Wow I never knew you could do that... thanks!
Roger Roelofs wrote:
> Brian,
>
> It isn't a javascript solution, but it should work. Use css to define
> a background image for the image. See the sample page below. I
> tested it in Safari, but not in anything else yet.
>
> -------
> <html>
> <head>
> <title>Testing...</title>
> <style type="text/css">
> .bigimg {
> background-image: url(loading.gif);
> background-position: center center;
> background-repeat: no-repeat;
> }
> </style>
> </head>
> <body>
> <img class="bigImg" src="bigimage.jpg" width="200" height="200" />
> </body>
> </html>
> -----------
>
> Roger
> -------------------------------------------------------
> Roger Roelofs web www.datacompusa.com
> Datacomp Appraisal Services web www.mhvillage.com
> 3215 Eaglecrest Drive, NE Email rer at datacompusa.com
> Grand Rapids, MI 49525-4593
>
> On Jan 18, 2004, at 3:00 PM, Brian Gordon wrote:
>
>> Is there any way to display a "loading" graphic in the place of the
>> real graphic while the real graphic is preloading? Also, are there
>> any JS image manipulation tools/functions?
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
>>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list