Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to load one image after the other completely 1

Status
Not open for further replies.

zefir

Technical User
Sep 21, 2000
344
EU
A long page has 10 portraits in a vertical row.
Each one is scaled by width=192 and height=192 to the
original size (then the browser knows the actual
size before having loaded the image).
The browser showsimmediately the empty frames and then
several images partly, starting with the first on top, until all
are completed correctly.
How can I force the browser to show each image completely
in a sequence from top to bottom ?
I use mainly Netscape. ----Gernot
 
One way would be to simply leave out the width and height specifications in the image tags. The browser would then have to load the image before deciding how to display it. Another would be to use JavaScript. You could preload the images in the header and display a blank gif in the image tags. Then you could run a procedure which changes the source of the blank images to the preloaded images with a delay between them.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Tanderso: thanks for the advice.
Omitting width and height results in a complete loading
until any image is shown. Exactly this has to be avoided.
I have no doubt,that your JavaScript method works fine,
but I prefer plain HTML.
I don´t understand why images are loaded in fragments
until the page is complete.
The Website is here. The questionable page is "Personal"="Staff".
Thanks again ---Gernot
 
I don't think there's a way with plain HTML to control the order of which images display. Unfortunately browsers just request image data and whatever order of images it recieves from the server is the order it shows them. JavaScript will give you control of the display like tanderso said.
tanderso, will preloading the images have the same effect as what zefir has already experienced in that after a complete loading, the images appear? Klae

You're only as good as your last answer!
 
Klae: it´s not only the order - the images are shown
in fragments until the whole collection is loaded.
---Gernot
 
To be more technical with my answer... 'whatever tcp/ip packets it recieves it processes and displays. so what ever part of the image it recieves it displays in the place it should be but still with no order or logic.' Klae

You're only as good as your last answer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top