[imp] status bar entries and mozilla
Jon Parise
jon@horde.org
Sun, 27 Jan 2002 13:44:16 -0500
On Sun, Jan 27, 2002 at 10:59:36AM -0500, Chuck Hagenbuch wrote:
> > In addition, it would be nice if (possibly a configuration),
> > all images had "title" attributes, so when you fly over the refresh link,
> > you know it is going to refresh.
>
> We do alt tags. If mozilla ignores those and doesn't pay attention to anything
> other than title, well, IMHO that's a really annoying feature and mozilla
> should be fixed. This one I'd be much more swayed by a patch, though.
I was looking at adding this to Horde::img(), and I'm thinking
that it might make sense to change the signature of the function
from:
img($src, $attr = '', $dir = null)
to:
img($src, $alt = '', $attr = '', $dir = null)
Because we send so many alt="" strings, it makes sense to treat
them specially. We could also use that value to generate
'title=' attributes in addition to 'alt=' attributes.
These days, 'title=' is as valid as 'alt=', but Mozilla will only
display the 'alt=' text in the event that the image can't be
loaded, while 'title=' is used as "mouseover" text.
I think the above change would be good except for the fact that
is makes backwards compaibility. However, it would make it more
like Horde::link():
link($url, $status = '', $class = '', $target = '', $onclick = '')
--
Jon Parise (jon@csh.rit.edu) . Information Technology (2001)
http://www.csh.rit.edu/~jon/ : Computer Science House Member