Guest User

Untitled

a guest
Jul 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. google.maps.event.addListener(_point.popup, 'domready', function() {
  2. //Have to put this within the domready or else it can't find the div element (it's null until the InfoBox is opened)
  3.  
  4. $(_point.popup.div_).hover(
  5. function() {
  6. //This is called when the mouse enters the element
  7. },
  8. function() {
  9. //This is called when the mouse leaves the element
  10. _point.popup.close();
  11. }
  12. );
  13. });
  14.  
  15. google.maps.event.addListener(map, 'click', function() {
  16.  
  17. });
  18.  
  19. var inside = false;
  20. $('#foo').live('mouseenter',function(){
  21. inside=true;
  22. }).live('mouseleave', function(){
  23. inside=false;
  24. });
  25. $("body").mouseup(function(){
  26. if(!inside) $('#foo').remove();
  27. });
Add Comment
Please, Sign In to add comment