Re: IE bug (downloading the same image over and over)



<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

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/
<cut><paste><cut... ehrmm.. where was I?>

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



.



Relevant Pages

  • Re: Image Quality
    ... adjustment for download speed/picture quality. ... >> Zone Alarm Pro can block Images in IE ... >> Pictures Are Not Displayed on Web Sites in Internet Explorer ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: images
    ... There should be a "Download Pictures" button that appears in a light-yellow ... such cases usually quitting and re-launching Entourage will fix the problem. ... Protection) to make sure that the images display automatically. ... make sure these preferences are checked: ...
    (microsoft.public.mac.office.entourage)
  • Re: Printing pages from web sites.
    ... understand why people might like to download and print copies. ... my audience to those users who are using at least a resolution of 1024 ... x 768 and a display that is not smaller than 15 inches. ... resolution images are available for a payment and access to their work ...
    (microsoft.public.frontpage)
  • Re: Blocked images with XP SP2
    ... My concern was triggered by observing that, when the message bar is clicked ... up to show an actual download is occurring. ... That's different from the images ... > Erm, I hope, this clears things up a bit? ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)