LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mozilla, html, <img src= ... alt= ... > (https://www.linuxquestions.org/questions/linux-software-2/mozilla-html-img-src%3D-alt%3D-80020/)

itsjustme 08-07-2003 09:52 PM

mozilla, html, <img src= ... alt= ... >
 
I know that when I use some simple html, as in the title here, the 'alt=' part will give me a little text box that pops us when the mouse is on the image - in Internet Explorer.

In Mozilla 1.4 I don't see those little image description text boxes with that tag. Does Mozilla not support that, or is there some other tag to use?

Thanks...

slakmagik 08-07-2003 11:06 PM

My Mozilla 1.4 doesn't show that or
<span class="box" title="popup text">direct text</span>.

Alt (for images only) and what I have for expanded text are w3c compliant last time I checked and not IE "extensions" and they did show up in Mozilla 1.0-1.3. I hate 1.4. I don't know what's wrong with that.

Cerbere 08-08-2003 12:58 AM

Mozilla doesn't have the little text boxes that 'pop-up', however any alt tags should appear in the status bar (View, Show/Hide, Status Bar)

Enjoy!
--- Cerbere

MasterC 08-08-2003 03:29 AM

Quote:

Originally posted by digiot
My Mozilla 1.4 doesn't show that or
<span class="box" title="popup text">direct text</span>.

Alt (for images only) and what I have for expanded text are w3c compliant last time I checked and not IE "extensions" and they did show up in Mozilla 1.0-1.3. I hate 1.4. I don't know what's wrong with that.

To err is human, but to jackup Mozilla ;)

Did you submit a bug report or find one that is already? Sounds like something that should be worked out for the next release :)

Cool

acid_kewpie 08-08-2003 03:32 AM

alt tags are designed to replace an image in non image capable browsers, it is *NOT* meant to be a popup text, this is technially mis use of the attribute, however useful it may be.

itsjustme 08-08-2003 07:47 AM

Quote:

Originally posted by acid_kewpie
alt tags are designed to replace an image in non image capable browsers, it is *NOT* meant to be a popup text, this is technially mis use of the attribute, however useful it may be.
Ok, technically, I see you are correct. So, therefore, I now see where Mozilla isn't doing it wrong.

But it is a cool side effect having the little text pop-ups.
I guess I'll just have to add in some text to the page if I want to have image descriptions.

Thanks...

edit: Oh, and the alt tags don't show up in the status bar.

haobaba1 08-08-2003 07:58 AM

That has really gotten me a little irritated lately as I have a chinese pictograph on my website and the translation in the alt tag and I hadn't seen lately, now I know why.

Bjørn 08-08-2003 12:53 PM

This has been sooo discussed to death at the bug report system of Mozilla:
http://bugzilla.mozilla.org/show_bug.cgi?id=25537

New reports like these are still coming in while this discussion has raged from 2000 (maybe even 1999) up this day. Mozilla is very strict in its standards and showing alternative text as a popup is not in the standard. The TITLE element is for that, and can be used for more than just images. Showing the ALT attribute as popup has effectively destroyed it's goal, to serve as an alternative to the image either when the image couldn't be loaded or because the user is browsing with a text browser. Many web developers are putting additional information in the ALT attribute or leaving it blank to prevent an a popup where he doesn't want one. This reduces the accesibility of websites.

Of course, for the users that would still like the ALT to popup like most other browsers do, there's a plugin. At least for Mozilla Firebird there is, don't know about the Mozilla complete suite.

itsjustme 08-08-2003 01:50 PM

It's interesting that this has been an issue for so long. I didn't read through all those comments in that link, but I would think the mozilla team would either just support it or say, "No, we aren't going to support it." (Maybe they did and I just missed it.)

But, hey, I can live without it myself. I didn't realize it was a big issue at mozilla. I just thought it was a tiny annoyance.

Also, TITLE, just names the webpage. It doesn't do anything to describe individually the numerous photo's that might be on the page.

regards...

slakmagik 08-08-2003 02:43 PM

People - I know ALT is for images. That's why I specified the fact. But <TITLE> as an *element* names webpages. title= as an *attribute* creates popups to expand text - like to gloss a footnote without having to follow a hyperlink or to fit a paragraph of info in a table cell without having a ridculously huge table. That's why I use it instead of ALT. Point is, *neither* works whether used or misused.

And Mozilla 1.4 doesn't show *its own* tooltips - like when you hover over one of twenty open tabs, it's supposed to popup the full address of the tab over the tab. But it doesn't. And it doesn't show in the status bar, either.

MasterC, as far as submitting a bug, I suppose I should have - for awhile I wasn't sure if it was Mozilla or this dropline gnome thing - that 'higher-number-graded' my Mozilla to my surprise. I've already used 1.4 and it's got more bugs and annoyances than I can count. I meant to always stick with 1.3beta. I've gotten kind of disillusioned with the Mozilla project and just don't feel like messing with them. Anyway - I have run 1.4 in fluxbox and it's just as broken there, so it is Mozilla.

Any time I rave about the 'greatest browser on earth' I'm talking about Mozilla up to 1.3beta. After that, not so much.

Bjørn 08-08-2003 02:51 PM

Uh, whoops I didn't mean the TITLE element I meant the TITLE attribute. If you want a popup in all browser, use:

<img src="bobbie.jpg" title="Bobbie, my dog." alt="Dog wearing a party hat.">

So "Dog wearing a party hat" will be displayed when the image cannot be displayed and "Bobbie, my dog" can be displayed as extra information in a way the browser thinks appropriate (most will display as a pop-up), but you cannot count on this information to reach your visitor always (but you couldn't anyway with the ALT attribute usage).

The people working on Mozilla are many and spread around the world, so you can expect them to have discussions about things for a long time. But I think they've decided long ago, it's just that bug reports like these keep being send. And it makes sense. I think this is good, and they shouldn't change it, as this will make the issue well known among many people.


Edit: About the tab pop-ups, I'm using Mozilla 1.4 here in Linux and it shows them perfectly. I'm using Slackware, but what I have installed is just the binairy installation from Mozilla.org, so it shouldn't matter. Of course, I'm not denying your problem and I think you should file that as a bug report if it has not been already done.

slakmagik 08-08-2003 03:03 PM

Quote:

Originally posted by Bjørn
Edit: About the tab pop-ups, I'm using Mozilla 1.4 here in Linux and it shows them perfectly. I'm using Slackware, but what I have installed is just the binairy installation from Mozilla.org, so it shouldn't matter. Of course, I'm not denying your problem and I think you should file that as a bug report if it has not been already done.
Is there something in prefs or a config file to turn that on? I thought it was *just on* - like I say, it has *always* worked before, no matter the OS or wm, so I don't know why it isn't now. If there's an option for it, point me to it, please - I'd really appreciate it, because I rely on that tab popup a lot.

Like I say, I'm in Slack too - usually use fluxbox but I've been trying out this dropline gnome thing lately and it doesn't work in either environment. I don't know where dropline got its mozilla from - like I say, it could be the dropline guys compiled it from source and broke it and gave me *that* binary - I dunno. Got more than I bargained for with this dlg thing.

itsjustme 08-08-2003 03:31 PM

A couple more :twocents: .

Sorry, I didn't know about the title attribute. I didn't see that in the html help files I have in HomeSite. But now I found it and will have to test it with Mozilla.
Quote:

TITLE="informational ToolTip"
The Internet Explorer 4.0 (and above) specific TITLE attribute is used for informational purposes. If present, the value of the TITLE attribute is presented as a ToolTip when the users mouse hovers over the <IMG> section. Note that any text provided in the TITLE attribute overrides that presented in the ALT attribute as the ToolTip - the contents of the ALT attribute will only be seen if the image can't be loaded for any reason.
Also, I have Mozilla 1.4 on Windows 2000 and on Red Hat 8.0 and I have Mozilla 1.3 on my slack box. The tab tooltip works on all and shows the Title of the web page. It doesn't show the url.

Regards...

scary picture

itsjustme 08-08-2003 03:36 PM

HEY!!

<img src= ... title= ... > works with Mozilla. :eek:

Thanks for all the discussion....

slakmagik 08-08-2003 03:43 PM

Huh. I didn't know anything about any IE4 - the w3c just says

http://www.w3.org/TR/html4/struct/gl...tml#adef-title

And maybe I'm still misusing it anyway, but not as badly as ALT - I am just glossing an element, after all. *g*

Weird. Wonder why my Mozilla's so busted? Cool that it works for you. I'm just going to see about uninstalling this and reinstalling 1.3. Of course, who knows what *that* will screw up in turn.


All times are GMT -5. The time now is 03:22 PM.