Копаю
hideClose: true,ничего не выходит
elem.observe('mouseout', function(e){ if(popup) popup.kill(); });
Тоже не работает...
Отправлено 12 Декабрь 2015 - 14:02
$$('.blclass').each(function(elem){ elem.observe('mouseover', function(e){ Event.stop(e); popup = new ipb.Popup('popup', { type: 'balloon', stem: true, attach: { target: elem, position: 'auto'}, hideAtStart: false, initial: 'hml', hideClose: true, w: '320px;', }); elem.observe('mouseout', function(e){ if(popup) popup.kill(); }); });
Сообщение изменено: Testweb (12 Декабрь 2015 - 14:03)
Отправлено 12 Декабрь 2015 - 18:31
$$('.blclass').each(function(elem){ elem.observe('mouseover', function(e){ Event.stop(e); popup = new ipb.Popup('popup', { type: 'balloon', stem: true, attach: { target: elem, position: 'auto'}, hideAtStart: false, initial: 'hml', hideClose: true, w: '320px;', this.observe('mouseout', function(e){ pop.hide(); }); }); });
Отправлено 12 Декабрь 2015 - 19:51
Отправлено 12 Декабрь 2015 - 20:20
<div id="test"> <a href="#" class="blclass" data-id=1>Test 1</a><br> <a href="#" class="blclass" data-id=2>Test 2</a><br> </div> <script> var popup; $('test').observe('mouseover', function(event) { var row = event.findElement('a.blclass'); if(row){ popup = new ipb.Popup('popup', { type: 'balloon', stem: true, attach: {target: row}, hideAtStart: false, initial: row.innerHTML, w: '320px;' }); } }); $('test').observe('mouseout', function(event) { var row = event.findElement('a.blclass'); if(row){ if(popup){ popup.kill(); popup = false; } } }); </script>
Отправлено 12 Декабрь 2015 - 20:46
Отправлено 13 Декабрь 2015 - 07:49
Отправлено 13 Декабрь 2015 - 08:36