View Full Version : H8 image replacement

05-17-2005, 05:14 AM
I know it's been a topic all over the place. I have tried several techniques so I'm not sure if this way has already been tried or not. I know a lot of the techniques fail in certain browsers and all those browser specific techniques are well and good but...

If you all could do me the favor and test it out on other browsers just to see how it works, it would be appreciated.

image replacement test (http://home.earthlink.net/~harbingerofthevoid/imagereplace/)

So far it works on:

IE 6
Mozilla 1.7.5
Firefox 1.0.2

05-17-2005, 12:42 PM
It works in Opera 8, but it fails the images on / CSS off situation

05-17-2005, 03:20 PM
... and has superfluous markup.

05-17-2005, 04:02 PM

I prefer Phark Revisited:

<h3 id="header">
Revised Image Replacement

/* css */
#header {
text-indent: -5000px;
background: url(sample-opaque.gif);
height: 25px;

Yours has an extra tag (an empty span, even!) and the CSS for it is rather bulky. Despite all that, it still doesn't solve the images off/css on issue. The Gilder/Levin and the Shea Enhancement method (which use the same markup as yours) do.