Unfortunately that did not work, but I found another code that make it
somehow work.
Here is the function I am using:
GEvent.addListener(polyg2,"click",function(){MOOdalBox.open("http://
localhost/Details/", "VBF", "800 450")});
This opens a modal window when clicked inside of a polygon with the
specified html page. But each time I try to open, it acts different,
however if i use the basic way of using a href: <a href="http://
localhost/Details/" rel="moodalbox 800 600" title="Caption: a
description of the page that's loading.">some page</a>, it works each
time.
Is there a way of making the polygon act like a image map so that i
can use the a href function?
Thanks,
G
On Oct 21, 2:20 am, igloo <[EMAIL PROTECTED]> wrote:
> Try GEvent.addListener(polyg1,"click",function(){window.location.href
> = 'YourURL';});
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---