<!-- ImageReady Preload Script (layout.psd) --> <script TYPE="text/javascript"> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; function preloadImages() { if (document.images) { Button1_over = newImage("images/Button1-over.gif"); Button2_Button1_over = newImage("images/Button2-Button1_over.gif"); Button2_over = newImage("images/Button2-over.gif"); Button3_Button2_over = newImage("images/Button3-Button2_over.gif"); Button3_over = newImage("images/Button3-over.gif"); Button4_Button3_over = newImage("images/Button4-Button3_over.gif"); Button4_over = newImage("images/Button4-over.gif"); Button5_Button4_over = newImage("images/Button5-Button4_over.gif"); Button5_over = newImage("images/Button5-over.gif"); Footer_button1_over = newImage("images/Footer_button1-over.gif"); Footer_button2_Footer_button1_over = newImage("images/Footer_button2-Footer_butto.gif"); Footer_button2_over = newImage("images/Footer_button2-over.gif"); footer_button3_Footer_button2_over = newImage("images/footer_button3-Footer_butto.gif"); footer_button3_over = newImage("images/footer_button3-over.gif"); footer_button4_footer_button3_over = newImage("images/footer_button4-footer_butto.gif"); footer_button4_over = newImage("images/footer_button4-over.gif"); footer_button5_footer_button4_over = newImage("images/footer_button5-footer_butto.gif"); footer_button5_over = newImage("images/footer_button5-over.gif"); preloadFlag = true; } } // --> </SCRIPT> <!-- End Preload Script --> <link href="style.css" rel="stylesheet" type="text/css"> </HEAD> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages(); onload();"> <!-- ImageReady Slices (layout.psd) --> <!-- SiteSearch Google --> <script type="text/javascript"><!-- google_ad_client = "pub-7304917892182792"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al"; google_ad_channel ="4861641801"; google_color_border = "FFA013"; google_color_bg = "FFFFFF"; google_color_link = "980000"; google_color_text = "006600"; google_color_url = "FFA800"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript"> //<![CDATA[ // A TextualZoomControl is a GControl that displays textual "Zoom In" // and "Zoom Out" buttons (as opposed to the iconic buttons used in // Google Maps). function TextualZoomControl() { } TextualZoomControl.prototype = new GControl(); // Creates a one DIV for each of the buttons and places them in a container // DIV which is returned as our control element. We add the control to // to the map container and return the element for the map class to // position properly. TextualZoomControl.prototype.initialize = function(map) { var container = document.createElement("div"); var zoomInDiv = document.createElement("div"); this.setButtonStyle_(zoomInDiv); container.appendChild(zoomInDiv); zoomInDiv.appendChild(document.createTextNode("Zoom In (+)")); GEvent.addDomListener(zoomInDiv, "click", function() { map.zoomIn(); }); var zoomOutDiv = document.createElement("div"); this.setButtonStyle_(zoomOutDiv); container.appendChild(zoomOutDiv); zoomOutDiv.appendChild(document.createTextNode("Zoom Out (-)")); GEvent.addDomListener(zoomOutDiv, "click", function() { map.zoomOut(); }); map.getContainer().appendChild(container); return container; } // By default, the control will appear in the top left corner of the // map with 7 pixels of padding. TextualZoomControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(4, 4)); } // Sets the proper CSS for the given button element. TextualZoomControl.prototype.setButtonStyle_ = function(button) { button.style.textDecoration = "underline"; button.style.color = "#008800"; button.style.backgroundColor = "#99B3CC"; button.style.font = "9px Arial"; button.style.border = "1px solid #88a9c9"; button.style.padding = "1px"; button.style.marginBottom = "1px"; button.style.textAlign = "center"; button.style.width = "8em"; button.style.cursor = "pointer"; } function onload() { var map = new GMap(document.getElementById("map")); map.disableDragging(); map.addControl(new TextualZoomControl()); map.addControl(new GMapTypeControl()); map.centerAndZoom(new GPoint(20, 52), 15); var icon = new GIcon(); icon.image = "http://labs.google.com/ridefinder/images/mm_19_red.png"; icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; icon.iconSize = new GSize(12, 20); icon.shadowSize = new GSize(22, 20); icon.iconAnchor = new GPoint(9, 20); map.addOverlay(new GMarker(new GPoint(20, 52), icon)); } //]]> </script>
tam jest taka linijka jak: map.addOverlay(new GMarker(new GPoint(20, 52), icon)); która wskazuje na położenie geograficzne (współrzędną, południk - równoleżnik) ikonki zaznaczenia, i zależałoby mi na znalezieniu czegoś co mapowało by kod kraju który wyciagam z whois np. PL, DE, JP na właśnie szerokości geograficzne (jakaś ogólnie dostępna baza danych). Jest coś takiego? Z takiego jak powyżej skryptu korzysta min. http://www.ipaddresslocation.org tylko nie mam pojęcia jak oni to robią....

