Re: IE bug (downloading the same image over and over)
- From: "Marc" <sorrygot@xxxxxxxxxxxxx>
- Date: Mon, 16 Apr 2007 23:34:13 +0200
<OBAFGKM_RNS@xxxxxxxxx> wrote in message
news:1176757561.288542.249570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 16, 3:26 pm, "Marc" <sorry...@xxxxxxxxxxxxx> wrote:
<OBAFGKM_...@xxxxxxxxx> wrote in message<cut><paste><cut... ehrmm.. where was I?>
news:1176746355.479334.141970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a javascript timer on my page that counts to 10. Every half
second it alternates images on my buttons from a lighter image to a
darker image, giving the appearance of the buttons blinking. The
problem is, when my Internet Explorer options are set to Check for
newer versions of the page: Every visit to the page, IE will download
those same 2 images every single time from the server. That's 20
downloads in 10 seconds for 2 images. This:
1. Creates a lag time
2. Shows the plain button in between switching from one image to
the other
3. Changes my cursor from the arrow to the hour glass back and
forth 20 times in 10 seconds
4. Constantly displays images being downloaded on the taskbar
Maybe I'm asking for too much but, I would think that since the page
itself is not being reloaded, that IE could use THE SAME 2 IMAGES.
Microsoft mentions this "feature" and offers a fix that... SURPRISE,
doesnt work. Firefox displays the images on the buttons flawlessly.
Are there any javascript solutions to alternating images back and
forth using some sort of timer, that will NOT cause this Internet
Explorer bug... i mean... feature? Preloading doesn't seem to work.
Thanks.
How about using sprites:http://alistapart.com/d/sprites/ala-buttons1.html
article:http://alistapart.com/articles/sprites
you could go nuts with it:http://slotmachine.braincast.nl/
Thanks for the reply Marc. That slot machine seems to work flawlessly
even with IE set to "every visit to the page". Now if i could only
figure out how he did it!
You could use Firefox and install firebug and check out the code... ;)
Be careful though... 'he' did a lot of animation with animated gifs... but
the buttons work with sprites, check for instance the play button:
http://slotmachine.braincast.nl/images/play.gif
'he' used css clip for the the sprites but that seems a bit old fashioned
now a days... you'd better check the article:
http://alistapart.com/articles/sprites
.
- Follow-Ups:
- Re: IE bug (downloading the same image over and over)
- From: OBAFGKM_RNS
- Re: IE bug (downloading the same image over and over)
- References:
- IE bug (downloading the same image over and over)
- From: OBAFGKM_RNS
- Re: IE bug (downloading the same image over and over)
- From: Marc
- Re: IE bug (downloading the same image over and over)
- From: OBAFGKM_RNS
- IE bug (downloading the same image over and over)
- Prev by Date: maximum number of code lines
- Next by Date: Re: How would I enumerate all the scripts available to a web page?
- Previous by thread: Re: IE bug (downloading the same image over and over)
- Next by thread: Re: IE bug (downloading the same image over and over)
- Index(es):
Relevant Pages
|