473,385 Members | 1,518 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,385 software developers and data experts.

Image flicker when replacing Images through CSS

I think this is straighforward enough so I don't need sample code, but
I will make an example if someone doesn't understand.

BACKGROUND:
We have built a "skinnable" interface, which uses rollover effects
using simple javascript. Before these images were defined in the HTML
(IMG src and TD Backgrounds), and it worked fine. You moused over a
button, for instance, and it changed immediately.

Now we have switched everything to external CSS -- in order to
facillitate different "skins" easily -- using spacer transparent GIFs
to hold the shape required, and on mouseover changing a background
image that is defined in external CSS. This problem (outlined below)
also exists for changing regular images in addition to the background
images, when they are defined in the CSS.

ISSUE:
Problem is, there is a noticable flicker now, when images are
"replaced". It is as if when you put an img src/url in the CSS it
doesn't cache, whereas using the oldschool method and putting it in the
HTML, it does cache.

Is there a way to eliminate this flicker?
Am I right about img src/url not caching in CSS?

Thanks,
B.A.

Aug 1 '06 #1
0 1422

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

Similar topics

0
by: Antti Isomursu | last post by:
Ok, this is my problem: I have succesfully created an image by pasting smaller images into area, created with canvas method: >>> canvas = Canvas(win, width=canvasX, height=canvasY,...
1
by: Spike | last post by:
Hello! Im going to make a javascript for changing alot of images. But im not sure how to do it., where to start.. Ok, first.. this is the isue. I have 3 images(I call them 1a-3a). when u...
1
by: Nick | last post by:
How to change the pic to a "show error" image when loading images failed - for example, no image file exists? I tried to add the following statement in the onload event function: if...
5
by: Amir | last post by:
When prefetching images, why do I need the "if (document.images)" statement? if (document.images) { pic1on= new Image(300,300); pic1on.src="pic1.gif"; pic2on= new Image();...
4
by: Thomas Richter | last post by:
Hi, I can't get of the black flicker when I resize my form. this = Mainform : System.Windows.Forms.Form If I set the size from 300 to 500 I see for ca 500ms some black areas. I try to solve it...
5
by: | last post by:
Hi, I'm not sure if what I'm trying to do is possible and there is a limit to my CSS knowledge. I'm trying to generate a CSS drop-down menu from a <li> that has been replaced by an image. The...
1
by: M Keeton | last post by:
I currently have a picture which is stored in a "System.Drawing.Image" variable and I want to save it as a bitmap file. I have tried 2 different approaches and both give me the following error: ...
3
by: seamlyne | last post by:
The first method I ever used for multiple state buttons was to create a graphic for each button for each state: AboutUs_on, AbooutUs_over, AboutUs_out, etc. That works great when there are just a...
4
by: huntingseasonson | last post by:
Hi, I have set up the following page http://gertrudischale.com/cgi/ viewart.pl?lang=en&i=22 to scroll in the same direction one moves the mouse. This works fine -except in IE- where the image tends...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.