Deff,
Спасибо! сработал только второй вариант. Жаль, мне не удалось выравнить тултип по центру экрана... |
Центрировал!:dance: Поставил в плагине тултип left и top 0
и добавил такой скрипт на страницу: function getClientWidth() { return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth; } function getClientHeight() { return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight; } jQuery.fn.center = function() { var w = $(window); this.css("position","absolute"); this.css("top",(getClientHeight()-this.height())/2 + "px"); this.css("left",(getClientWidth()-this.width())/2 + "px"); return this; } $("#tooltip").center(); |
Часовой пояс GMT +3, время: 07:12. |