Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-17-2005, 04:14 AM   PM User | #1
harbingerOTV
Senior Coder

 
Join Date: Jan 2005
Location: Memphis, TN
Posts: 1,765
Thanks: 8
Thanked 123 Times in 121 Posts
harbingerOTV will become famous soon enough
H8 image replacement

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

So far it works on:

IE 6
Mozilla 1.7.5
Firefox 1.0.2
harbingerOTV is offline   Reply With Quote
Old 05-17-2005, 11:42 AM   PM User | #2
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
It works in Opera 8, but it fails the images on / CSS off situation
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Old 05-17-2005, 02:20 PM   PM User | #3
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Extra span

... and has superfluous markup.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 05-17-2005, 03:02 PM   PM User | #4
AaronW
Senior Coder

 
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 1,223
Thanks: 0
Thanked 0 Times in 0 Posts
AaronW is an unknown quantity at this point
http://www.mezzoblue.com/tests/revis...e-replacement/

I prefer Phark Revisited:

Code:
<h3 id="header">
	Revised Image Replacement
</h3>

/* 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.
__________________
offtone.com | offtonedesign.com
AaronW is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:27 AM.


Advertisement
Log in to turn off these ads.