禁用默认工具提示并离开mootools

时间:2012-01-19 02:52:18

标签: mootools tooltip

如何禁用页面上的默认工具提示?我有这些mootools提示工作,但它显示页面上的默认值也使它变得混乱?

1 个答案:

答案 0 :(得分:1)

通常,您只需要使用自定义工具提示从元素中删除title属性。例如:

// After you created the tips with something like...
var myTips = new CustomTips($$('div.myelements'));

// You remove their title attribute to remove default tips
$$('div.myelements').each(function(el) { el.setProperty('title', ''); });