views:

111

answers:

2

Hi everyone

i am using iframes in html.loading different html pages into iframes.in that html pages i have image. whenever i load the image into iframes i getting flickering.

can we stop that flickering by using Iframes

How to do ?

Thanks & Regards

Ravi Kumar

A: 

Hmm, I'm not entirely sure what sort of an flicker you want to get rid of, but I'd imagine it's related to the browser loading and then showing your new page with the image.

Well I can not think of any good ways, other than loading the next image into another iframe on background and then switching between the currently visible and the newly loaded iframe.

The bigger question is, why do you need to use the iframes? Are you loading something from a site that you do not own? If not, consider ajax and other such techniques.

Mikko Tapionlinna
A: 

There are a few things you can do to help with this.

Firstly, make sure you specify the width and height of the image. The browser will then reserve space for the image, rather than resizing the reserved space when the size of the image is known.

If you wan supply an example, we can talk about pre-loading if it seems necessary.

Sohnee