73pixieGirl
Programmer
Hello,
I've registered and got the script for google maps, and now I'm trying to click on an image that will call a function on my html page, to open a window showing the full size google map. This can't be that hard, but I'm stuck.
Here's what I have:
a button with the following AS
on (release) {
getURL("javascriptpenWindow()", "_blank");
}
then I copied and pasted the google api script and put this in my .html file.
<script src=" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function openWindow() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>
When I click on the button, nothing happens. What am I doing wrong?
TIA!
I've registered and got the script for google maps, and now I'm trying to click on an image that will call a function on my html page, to open a window showing the full size google map. This can't be that hard, but I'm stuck.
Here's what I have:
a button with the following AS
on (release) {
getURL("javascriptpenWindow()", "_blank");
}
then I copied and pasted the google api script and put this in my .html file.
<script src=" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function openWindow() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>
When I click on the button, nothing happens. What am I doing wrong?
TIA!