+1 vote
by
How to do that would be hiding the priest not occurred in the allotment of the mouse on the popup itself maybe there will be links?
arr = new Array();
for (var i = 0, len = rsrGroups.length; i < len; i++) {

var el = rsrGroups[i];

el.mouseover(function() {
var point = this.getBBox(0);


$('#ofices').next('.point').remove();

$('#ofices').after($('<div />').addClass('point'));
// $.ajax({
// url: '/sample-page/',
// cache: false,
// beforeSend: function() {
// $('#content').html('Please wait...');
// },
// success: function(html) {
// $('#content').html(html);
// }
// });
$('.point')
.html(this.id)
.prepend($('<a />').attr('href', '#').addClass('close').text('Закрыть'))

.css({
left: point.x + (point.width / 2) - -300,
top: point.y + (point.height / 2) - 850
})
.fadeIn();
$(".contain").clone()
.css('display','block')

.appendTo(".point");

});
el.mouseout(function() {

$('.point').css('display','none');
return false;
});

2 Answers

0 votes
by
get
el.mouseout(function() {

$('.point').css('display','none');
return false;
});
by
Sergey750il : in what sense?
by
There is a div with id="rsr" in this lies the diva card on SVG Raphael, in the map a whole bunch of offices, and when you hover over one of them POPs up popup with info and a link to go on details.
by
Tried - not working as it should.
by
Sergey750il : then we have "el.parent().mouseout(function() {"
by
Sergey750il : and when he closes?
by
When bringing the mouse out of the parent block.
by
Then he won't be hiding.
0 votes
by
In General, added setTimeout to delay the hiding of the window, but then how to make it disappeared as soon as the mouse is displayed outside the parent unit. Can't figure out how to make the proper selection.
...