0
我一直在開發一些應用程序,我需要把谷歌地圖放在我的網站上。我已經使用這個代碼:如何通過Google地圖獲取點擊次數?
<?php
echo "<iframe width='425' height='350' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='http://maps.google.ru/maps?hl=ru&ie=UTF8&ll=55.354135,40.297852&spn=27.388971,86.572266&t=h&z=4&output=embed'></iframe><br /><small><a href='http://maps.google.ru/maps?hl=ru&ie=UTF8&ll=55.354135,40.297852&spn=27.388971,86.572266&t=h&z=4&source=embed' style='color:#0000FF;text-align:left'>Show map increased</a></small>";
echo "<form method='POST'><input type='text' /><input type='submit' /></form>";
?>
你可以看到我也使用「form」。這很重要,因爲如果用戶點擊地圖,那麼表格中的標籤應該顯示點擊的座標。但我不知道Java Script。請告訴我,我該怎麼做?謝謝。