You need to get a little creative with DHTML. :-) Create a hidden 'container' DIV and place your adSense code in it. Then, in the marker's 'click' event handler, clone the node and pass it to openInfoWindow(). Example: http://maps.forum.nu/gm_adsense_infoWindow.html
To display different ads in each infoWindow, either create multiple hidden containers or reload the content of the hidden container by creating it and destroying it dynamically. -- Marcelo - http://maps.forum.nu -- On Jan 18, 5:21 am, Jelo <[email protected]> wrote: > Hi, > > How do I correctly display adsense code on a map in the HTML > Infowindow for a marker? > > Thank you, J. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
