change alt="" change alt=""
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

change alt=""

Started by rybosom, January 29, 2005, 01:16:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rybosom

how to change alt="" and add description (one description for all pictures to someone who cannot see any images) ?


donnoman

How is one description for all images any more helpful?

If you think about it, that just creates more cruft and a harder page to understand for someone who is impaired.

Either make it relevant or don't do it at all.

rybosom

for example:

now is:

<a href="displayimage.php?album=random&cat=0&pos=-11"><img src="albums/userpics/10001/thumb_700.jpg" class="image" " height="95" border="0" alt="700.jpg" title="Nazwa pliku: 700.jpg Rozmiar pliku: 17kB Wymiary: 239x350 Data dodania: 02 Stycznia 2005"><br /></a>

or

<a href="displayimage.php?album=random&cat=0&pos=-6"><img src="albums/userpics/10001/thumb_4008.jpg" class="image" " height="95" border="0" alt="4008.jpg" title="Nazwa pliku: 4008.jpg Rozmiar pliku: 139kB Wymiary: 350x443 Data dodania: 02 Stycznia 2005"><br /></a>

and I want to change to this:

<a href="displayimage.php?album=random&cat=0&pos=-11"><img src="albums/userpics/10001/thumb_700.jpg" class="image" " height="95" border="0" alt="Obraz nalezacy do strony o haftach itp" title="Nazwa pliku: 700.jpg Rozmiar pliku: 17kB Wymiary: 239x350 Data dodania: 02 Stycznia 2005"><br /></a>

or

<a href="displayimage.php?album=random&cat=0&pos=-6"><img src="albums/userpics/10001/thumb_4008.jpg" class="image" " height="95" border="0" alt="Obraz nalezacy do strony o haftach itp" title="Nazwa pliku: 4008.jpg Rozmiar pliku: 139kB Wymiary: 350x443 Data dodania: 02 Stycznia 2005"><br /></a>

ect.

all tags name 'alt' are the same: Obraz nalezacy do strony o haftach itp

donnoman

I don't see how that is an improvement.

Imagine that page being read to you. (common for the visually impaired)

I wouldn't want to hear "Obraz nalezacy do strony o haftach itp" over and over again.

The filename at least conveys relevant information.

To me it would make more sense if the text of the title were to be used as the alt if anything were to be changed.

random excellent google resources:

http://www.schrode.net/design/alttext.html
http://uaweb.arizona.edu/resources/tutorial/alt.shtml


kegobeer

You're talking about the thumbnails and the images in the filmstrip, right?

In functions.inc.php, find (there will be two of them, one in function display_film_strip and one in function display_thumbnails)
$thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" title=\"$pic_title\">";

Reaplce {$row['filename']} with Obraz nalezacy do strony o haftach itp
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

rybosom

thx  ;)

it's works! good work  :)

Joachim Müller

the point of the alt text is something else - the images already contains a title text that is more important to screen readers anyway than an alt text. Although your initial question was solved (you managed to edit the alt text), you should reconsider this - as donnoman pointed out, you shouldn't abuse the alt text.

Joachim