Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- google.maps.event.addListener(_point.popup, 'domready', function() {
- //Have to put this within the domready or else it can't find the div element (it's null until the InfoBox is opened)
- $(_point.popup.div_).hover(
- function() {
- //This is called when the mouse enters the element
- },
- function() {
- //This is called when the mouse leaves the element
- _point.popup.close();
- }
- );
- });
- google.maps.event.addListener(map, 'click', function() {
- });
- var inside = false;
- $('#foo').live('mouseenter',function(){
- inside=true;
- }).live('mouseleave', function(){
- inside=false;
- });
- $("body").mouseup(function(){
- if(!inside) $('#foo').remove();
- });
Add Comment
Please, Sign In to add comment