<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DonkeyCardList.aspx.cs" Inherits="superAdmin_Event_DonkeyCardList" %> <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>aaa</title> <link href="../../style/style_2005.css" rel="stylesheet" type="text/css" /> <style type="text/css"> @import url( http://www.google.com/uds/css/gsearch.css ); @import url( http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css ); </style> <script src="http://ditu.google.com/maps? file=api&v=2&key=ABQIAAAAAk7ZYuXz6CejEUQKnbm03hT6HJgUPjqE9PyLLPlvefEPAfpAzhTeurct5fLJotbSqIAvsHsEE4YGVA" type="text/javascript"></script> <script src="http://www.google.com/uds/api?file=uds.js&v=1.0" type="text/javascript"></script> <script src="http://www.google.com/uds/solutions/localsearch/ gmlocalsearch.js" type="text/javascript"></script> <script type="text/javascript"> function QueryString() { //构造参数对象并初始化 var name,value,i; var str=location.href;//获得浏览器地址栏URL串 var num=str.indexOf("?") str=str.substr(num+1);//截取“?”后面的参数串 var arrtmp=str.split("&");//将各参数分离形成参数数组 for(i=0;i < arrtmp.length;i++) { num=arrtmp[i].indexOf("="); if(num>0) { name=arrtmp[i].substring(0,num);//取得参数名称 value=arrtmp[i].substr(num+1);//取得参数值 this[name]=value;//定义对象属性并初始化 } } } function initialize() { if (GBrowserIsCompatible()) { // Create and Center a Map var abc = new QueryString(); var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(abc.b, abc.c), parseInt(abc.a)); //alert(abc.a.substring(1, abc.a.length - 1)); var Gover = new GOverviewMapControl(); map.addControl(Gover); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.addControl(new GSmallZoomControl(), new GControlPosition (G_ANCHOR_TOP_LEFT, new GSize(10,50))); map.addControl(new GScaleControl()); visitedIcon = new GIcon(); visitedIcon.image = "http://labs.google.com/ridefinder/images/ mm_20_red.png"; visitedIcon.shadow = "http://labs.google.com/ridefinder/images/ mm_20_shadow.png"; visitedIcon.iconSize = new GSize(12,20); visitedIcon.shadowSize = new GSize(22,20); visitedIcon.iconAnchor = new GPoint(6,20); visitedIcon.infoWindowAnchor = new GPoint(5,1); var marker0 = new GMarker( new GLatLng(abc.b,abc.c), {icon:visitedIcon}); map.addOverlay(marker0); } } GSearch.setOnLoadCallback(initialize); </script> </head> <body> <form id="form1" runat="server"> <div id="map_canvas" style="width: 500px; height: 385px"> </div> </form> </body> </html> after url, there is ?a=14&b=23.18462969&c=113.79813957 i have test it in ie7 and ff, it can show great in ff, but i can see nothing in ie7? there is any problem? thank in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
