If you can create a PNG or GIF with a transparent background, you can use just one image and use javascript/css to swap out the background colour for rollovers. This would reduce the number of requests and improve the performance on heavily traffic'd sites.

Kim

P.S. Thanks for the demo at the Sydney meetup last night!

Comments

skybow’s picture

Hi,

interesting idea. However, I found that using transparent images may not result in good looking output due to improper aliasing. At least with the font I have in mind for my project, the image looks much better without transparency.
The other thing is, that menuwriter transmits only one image for both states. Rollover is done by showing different parts of the image.
OK, the image size may be a bit larger, but the number of requests is the same.

Tilman

behindthepage’s picture

Status: Active » Closed (fixed)