Click to See Complete Forum and Search --> : scrolling background - caching


Ddeele
11-17-2003, 11:55 PM
I want to use a scrolling background on a page. So far so good.

The problem arises if the browser has a cache setting like 'Check for newer versions of stored pages' = 'Every visit to the page'.

In that case, the background graphic gets reloaded from the server every time the page wants to move it. Very bad!

I've looked at several versions of this trick that are posted around (including one that costs money) and none of them seems to capture this condition.

There's probably no way to make the browser cache the graphic, but is there at least a way to force stopping repeated requests like this in a session?

Jona
11-18-2003, 12:22 AM
Nope... I'd suggest putting a DIV with a background on it and moving that DIV around on the screen with a z-index of -100 or something. That's assuming your background isn't a scrolling background in all directions.

[J]ona