Yes, of course you can do stuff like this, although it gets pretty ugly and
bloated if you have a lot of images. The point of Betsie is that it can be
retrofitted to existing websites without the need to modify any code.

It also caters for people who are working on a machine that is not
configured to their needs and cannot be altered e.g. in an Internet cafe or
a locked-down machine in someone else's office. Your image replacement
technique does not cater for these situations unless you also add a style
switcher, but that appears to be taboo in this list.

Steve

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dorward
Sent: 20 November 2008 21:06
To: [email protected]
Subject: Re: [WSG] Text-only version

Steve Green wrote:

> You can do a lot of what Betsie does using CSS but the one thing you 
> can't do is replace the images with their 'alt' attributes.

CSS is quite capable of that.

The following works fine in Opera 9.62 (the only browser I've bothered to
test for this proof of concept).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd";>
   <title>Replace Image With Alt</title>
   <style type="text/css">
        img {
                height: 0; width: 0;
        }

        img::after {
                content : attr(alt);
        }
   </style>
   <h1>Replace Image With Alt</h1>

   <div>
        <img src="http://dorward.me.uk/images/wheel/logo.png";
                alt="Dorward Online">
   </div>


-- 
David Dorward                               <http://dorward.me.uk/>


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to