+1 vote
ago 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
ago by
get
el.mouseout(function() {

$('.point').css('display','none');
return false;
});
ago by
Sergey750il : in what sense?
ago 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.
ago by
Tried - not working as it should.
ago by
Sergey750il : then we have "el.parent().mouseout(function() {"
ago by
Sergey750il : and when he closes?
ago by
When bringing the mouse out of the parent block.
ago by
Then he won't be hiding.
0 votes
ago 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.
...