That's the question. All options are suitable, preferably cross-browser.
2 answers
1) Remove the title.
2) onmouseover = "return false;" - not sure about cross-browser compatibility. FF, for example, not hawala.
3) For true perverts:
var tmpTitle; // ...
onmouseover="tmpTitle = this.title; this.title=''" onmouseout="this.title = tmpTitle;" 4) put on top a transparent div. Also a crutch.
- Preferred is option 1 :) <br> PS: method 2 is also a perversion, something else ... - Zowie
- No, Method 2 is not a perversion. This is an obvious decision, given that hint is a reaction to pointing. It is strange that not all browsers understand this. - knes
- this is a perversion, and if the element already has an onmouseover handler? <br> Write always
return false? IMHO is nonsense .. <br> And if this reason is the third option, too, "not a perversion" ... - Zowie - if there is already a handler, then write return false; at the end of the handler. ^ ___ ^ Just do not say that you do not understand. For if a person wrote a handler, he somehow somehow knows a little about the mechanism of his work. The third is a perversion because, in fact, we are forced to completely remove the title when hovering. That is, to put a crutch just because cutting off the default handler does not always work with us. - knes
- I understood everything perfectly, I just think that this is something like a type of music :) - Zowie
|
var a = document.getElementsByTagName('*'); for(i = 0, il = a.length; i < il; ++i){ if(1 /*проверка на тег, класс и т.п.*/){ a[i].removeAttribute('title'); } } Kills all titles. = P
|