Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- epos = e.currentTarget.getBoundingClientRect();
- x = e.clientX - epos.left - 56;
- y = e.clientY - epos.top - 21;
- var popup = document.getElementById("sbPopup");
- popup.innerHTML = sbGetPopupInfo(imin - 1, x, y);
- popup.style.left = e.clientX + 40 + "px";
- popup.style.top = e.clientY - 40 + "px";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement