473,545 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE bug (downloading the same image over and over)

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.

Apr 16 '07 #1
5 1743

<OB*********@ya hoo.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
>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/
Apr 16 '07 #2
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!

On Apr 16, 3:26 pm, "Marc" <sorry...@dirty mail.comwrote:
<OBAFGKM_...@ya hoo.comwrote in message

news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
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/

Apr 16 '07 #3
<OB*********@ya hoo.comwrote in message
news:11******** **************@ p77g2000hsh.goo glegroups.com.. .
On Apr 16, 3:26 pm, "Marc" <sorry...@dirty mail.comwrote:
><OBAFGKM_...@y ahoo.comwrote in message

news:11******* *************** @n59g2000hsh.go oglegroups.com. ..
>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><cu t... 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

Apr 16 '07 #4
I'll see if i can figure out how it was done. Thanks again for
pointing me in the right direction.
On Apr 16, 5:34 pm, "Marc" <sorry...@dirty mail.comwrote:
<OBAFGKM_...@ya hoo.comwrote in message

news:11******** **************@ p77g2000hsh.goo glegroups.com.. .
On Apr 16, 3:26 pm, "Marc" <sorry...@dirty mail.comwrote:
<OBAFGKM_...@ya hoo.comwrote in message
>news:11******* *************** @n59g2000hsh.go oglegroups.com. ..
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><cu t... 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

Apr 16 '07 #5
hmmm... nothing works. I think that slot machine maybe is reloading
images so small that they are not even noticed. My guess is that
Internet Explorer just doesnt handle images corectly and nothing can
be done until microsoft decides to fix it.

On Apr 16, 7:14 pm, OBAFGKM_...@yah oo.com wrote:
I'll see if i can figure out how it was done. Thanks again for
pointing me in the right direction.

On Apr 16, 5:34 pm, "Marc" <sorry...@dirty mail.comwrote:
<OBAFGKM_...@ya hoo.comwrote in message
news:11******** **************@ p77g2000hsh.goo glegroups.com.. .
On Apr 16, 3:26 pm, "Marc" <sorry...@dirty mail.comwrote:
><OBAFGKM_...@y ahoo.comwrote in message
>>news:11****** *************** *@n59g2000hsh.g ooglegroups.com ...
>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><cu t... 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

Apr 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7023
by: Dave | last post by:
Dear Sirs, Is there a way to get the width and height of an image without downloading the image, or with just downloading a minimal portion of the image? For instance, I have a list of 10,000 image urls, and I would like to get the width and height of every image without spending the time and bandwidth of downloading every image.
0
1511
by: TJ | last post by:
Hi, I've written code web-based uploading and downloading. Here is some code for it. For saving file into MS-SQL database, SaveFileIntoDB(HttpPostedFile file) { int fileLength = file.ContentLength; byte fileContent = new byte; int lastPos = file.FileName.LastIndexOf('\\');
23
1799
by: Doug van Vianen | last post by:
Hi, Is there some way in JavaScript to stop the downloading of pictures from a web page? Thank you. Doug van Vianen
5
1594
by: Trapulo | last post by:
Hi, I've a big trouble with an asp.net page. Basically, the page has an swf that starts and downloads some data from an other asp.net page. The application works well on my testing IIS 6, but when I upload it on production server (an other IIS6), it cannot download anything. The application is in ASP.NET 2.0. The page with swf, the swf,...
5
1847
by: rony_16 | last post by:
Hi, I have a problem downloading a file . after i connect to the website and get the stream , i treing to write the file on the HD. public void SaveStreamToFile(string filePath, Stream stream) { // If not all data was provided return false; //if (string.IsNullOrEmpty(filePath) || stream == null) // return false; // System.IO.Stream...
3
2615
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm running into some PHP behavior that I do not understand in PHP 5.1.2. I need to parse the HTML from the following carefully constructed URI:
35
9307
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from 500000 to 3200000 of a file whose size is say 20MB... how do i request a download which starts directly at 500000th byte... thank u cheers
2
1251
archulu
by: archulu | last post by:
hai this is archulu, i have a some confusion and doubt in my downloading program.that doubt was in my program i am upload some gif and img file to some path.it's good, after usage of that image i want download that image as in same name as a uploading name.but its giving name as downloading-1 and downloading-2 so on like this but i want to names...
4
3441
by: Nik0001 | last post by:
Hello everyone! I have the following problem I need to download several HTML pages and get meta-tags out of the code. I decided it would be better to download only the meta-tags rather than downloading the whole page. But the standard method (HttpWebRequest) in C# only allows me to download the whole page. Is there some alternative...
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7411
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7669
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7926
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4962
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.