473,382 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1732

<OB*********@yahoo.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.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...@dirtymail.comwrote:
<OBAFGKM_...@yahoo.comwrote in message

news:11**********************@n59g2000hsh.googlegr oups.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*********@yahoo.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
On Apr 16, 3:26 pm, "Marc" <sorry...@dirtymail.comwrote:
><OBAFGKM_...@yahoo.comwrote in message

news:11**********************@n59g2000hsh.googleg roups.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><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

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...@dirtymail.comwrote:
<OBAFGKM_...@yahoo.comwrote in message

news:11**********************@p77g2000hsh.googlegr oups.com...
On Apr 16, 3:26 pm, "Marc" <sorry...@dirtymail.comwrote:
<OBAFGKM_...@yahoo.comwrote in message
>news:11**********************@n59g2000hsh.googleg roups.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><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

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_...@yahoo.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...@dirtymail.comwrote:
<OBAFGKM_...@yahoo.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
On Apr 16, 3:26 pm, "Marc" <sorry...@dirtymail.comwrote:
><OBAFGKM_...@yahoo.comwrote in message
>>news:11**********************@n59g2000hsh.google groups.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><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

Apr 17 '07 #6

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

Similar topics

2
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...
0
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 =...
23
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
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...
5
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) {...
3
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...
35
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...
2
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...
4
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.