[dev] Re: [imp] status bar entries and mozilla
Jan Schneider
jan@horde.org
Sun, 27 Jan 2002 19:52:36 +0100
Zitat von Jon Parise <jon@horde.org>:
> 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 = '')
I agree completely. Though you probably meant it would _break_ backward
compatibility? ;-)
We'll break backward compatibility anyway at least after we merged the
notification stuff.
Jan.
--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::