[RESOLVED] IE and tooltips
I noticed this recently: say when mouse pointer is over avatar then tooltip would say "User's Avatar" or when it's over the rating it would display something else... But it's not ... "Works" the same way on any other site so it must be my browser. Am I missing something?
Thanks guys.
Re: [RESOLVED] IE and tooltips
Just to clear up:
alt -> This is used for disability access and is intended for alternative descriptions to images and such for those with bad eyesight. It is also used by users with low internet speeds who turn off images by default.
title -> This is the toolTip on your mouse
(note that early browsers wouldn't discern the difference between them, but later ones ignore alt because it is intended for browsing with images turned off)
Re: [RESOLVED] IE and tooltips
Perhaps you can clarfiy it one more time - what are you talking about, man? :confused:
If anyone is interested then here it is: as of this morning tooltips are disappeared again... It's just insane !!! :sick:
Re: [RESOLVED] IE and tooltips
Alt is used if someone is browsing with images turned off. I think it's required for various countries' disability discrimination laws. So if the image is turned off, a bit of text (the alt tag) explains what the image is.
Re: [RESOLVED] IE and tooltips
Quote:
Originally Posted by Valleysboy1978
Alt is used if someone is browsing with images turned off...
What "ALT" ??? :confused: :confused: :confused: Are there any settings?
You keep saying ALT but what is it? How do you set it or how do you change it?
Re: [RESOLVED] IE and tooltips
What I *suspect* might be happening is that an ad is delivering invalid Javascript, which produces a Javascript error and thus halts further execution of script. Since the tooltips are attached through JS, a JS error would stop their appearance, and it would also explain the intermittency.
Rhino, do you have a "Done, but with errors on page" message in the status bar when you can't view tooltips?
Re: [RESOLVED] IE and tooltips
'Alt' is HTML code, as I showed in post #2. It is the "alternative text" to be displayed if an image cant be shown, so there is nothing you can do about it.
The tooltip is nowadays based on 'Title' rather than 'Alt' (the previous assumed standard), and is added to vBulletin pages by Javascript... which is why I think that penagate has found the problem.
Re: [RESOLVED] IE and tooltips
But that shouldn't affect anything - anytime - anywhere regardless...
It works and it doesn't and then again - it works and it doesn't for no particular reason... That's insane!
If anyone can reasonably explain what ALT and/or Title has to do with all of the above I'd be grateful.
So far I am yet to find any reason and/or fix.
Re: [RESOLVED] IE and tooltips
I think in the days of IE4 Alt was the ToolTip but this was mostly because M$ wouldn't follow the standards, now they do.
A typical HTML Image tag looks like this:
Code:
<IMG SRC="welcome.jpg" Alt="Welcome Image" Title="Welcome to the Home of VBF">
Re: [RESOLVED] IE and tooltips
Indeed, and the Title is what is shown as the tooltip (so in that example, "Welcome to the Home of VBF").
vBulletin doesnt include Title by default - it gets added by Javascript. Because of this, this situation that penagate described makes perfect sense (having Javascript disabled would cause it too).
Re: [RESOLVED] IE and tooltips
Explanation time.
The alt attribute (not tag) came first. MS didn't flout the standard, as it didn't exist at the time. Netscape did the same.
Title came after, as the W3C standardised method of providing a 'caption' - often rendered as a tooltip, at the browser (user agent)'s discretion.
However, the standard says that the alt should never be displayed as a tooltip. Alternate text is only ever to be rendered at all when the original element cannot be. So, in this respect, MSIE now gets it 'wrong'.
As si says, vBulletin adds the title attribute through Javascript and in fact all it does is copy the alt attributes. (Which is semantically incorrect, but practically achieves the desired effect.) As any Javascript errors can cause all Javascript execution to halt, an error in Javascript served by an advertisement could thus cause tooltips to break, as the code to add them will not be reached.
Alt and title attributes can be added to most HTML body elements.
Re: [RESOLVED] IE and tooltips
Re: [RESOLVED] IE and tooltips
Indeed WHAT ?! How and mainly why that nonsense is affecting my machine? I have 5 (five) computers at home and 3 (three) at work. I've never experienced anything like this ever before because only one (this one which is my main machine) is affected.
Can you tell me how to fix or how to avoid this from happening in the future rather than telling me about the standars that MS did or did not follow I will appreciate it more.
Why should I care about the darn standards?
Thanks
Re: [RESOLVED] IE and tooltips
You should care about the standards because you are a developer :eek:
Re: [RESOLVED] IE and tooltips
Not in this case he's not... he's an irate user of web technologies. Sounds familiar. :)
If it is (an it might not be) an error in an advert, you will get the a JS error message, so, Rhino, when the tooltips don't work, do you have a "Done, but with errors on the page" message in your IE status bar?
Re: [RESOLVED] IE and tooltips
That's the point - no errors what so ever - clean just like it should be.