Reply to Re: styled text substitute for a picture that fails to load...

Your name:

Reply:


Posted by dorayme on 10/14/05 05:17

> From: Toby Inkster <usenet200510@tobyinkster.co.uk>
>
> dorayme wrote:
>
>> Anyone know if there is a simple way or a way to have some
>> /styled/ text appear if a graphic image fails (by accident or
>> intention) to load?
>
> That's the idea of the <object> element:
>
> <object type="image/jpeg" data="blah.jpeg" height="120" width="180">
> <p>Alternative text goes here. It can use <i>italics</i> or
> <b>bold</b> or whatever you want. You might want to offer a <a
> href="blah.jpeg">link to the image</a> so that people can download
> it for viewing in a standalone image viewer if their browser doesn't
> support images.</p>
> </object>
>
> However, although <object> itself is well-supported in most browsers, many
> still have problems correctly dealing with the alternative content.
>
> XHTML 2.0 will be cool in that you won't really need the <img/> element.
> Any element can be used to display an image. e.g. instead of:
>
> <h1><img src="banner.jpeg" alt="Heading"/></h1>
>
> you'd use:
>
> <h1 src="banner.jpeg">Heading</h1>
>

Yes, that would be neat.

I made some experiments and offline the object construct was
best on some of my browsers but things are different and more
complex online! Online, my best browser the Mozilla, renders the
<h1> or <span> best... my main criterion being the /absence/ of
the rectangle (from the img specs), all else like bg and width
can be accounted for, but the rect can only be rid of by leaving
out the specs (I don't like doing this, but I suppose it is a
thought for the occasional pictured heading)...

You can see a test page at http://dorayme.150.com/test.html (I
include the last in the list with same bg as the page (my
preferred practice for most headings, even the rare pictured
ones), this looked the best to me off line, but not online.
Anyway it is too complicated for now, I would need to make
screen shots to show you what I see... For now it seems that a
span or h1 is best for online - on the evidence of my eyes. I
started out this post saying things like "Yes, the object
element is the go..." till I tried online. Maybe that server is
lousy? Will try others...

I will take a look on Windows browsers when I can...

Don't anyone worry about all this too much...it is not any kind
of urgent problem. No wonder pharmeceutical drugs cost so much,
testing anything seems to take up enormous quantities of time.

dorayme

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация