how to change alt="" and add description (one description for all pictures to someone who cannot see any images) ?
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.
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
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
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
thx ;)
it's works! good work :)
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