Changeset 59 for oceandb/jQuery_Prototype
- Timestamp:
- Feb 18, 2009, 11:34:05 AM (16 years ago)
- Location:
- oceandb/jQuery_Prototype
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
oceandb/jQuery_Prototype/index.html
r57 r59 3 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta http-equiv="cache-control" content="must-revalidate" /> 7 5 8 <title>台灣海洋資訊資料庫聯盟網 Taiwan Ocean Informatioan Database</title> 6 9 <link rel="stylesheet" type="text/css" href="index.css" /> 7 10 <link rel="stylesheet" type="text/css" href="css/theme/ui.all.css" /> 11 <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAREq2HXjZzIdAyVORbKBYMhTfzQKfMm5eNRoty1ZKt0XEeQdtXxTxlSH6lZOV7UEfIym3ft5_EnXXDw" type="text/javascript"></script> 8 12 <script src="script/jquery.js" language="javascript"></script> 9 13 <script src="script/jquery-ui.js" language="javascript"></script> 10 14 <script src="script/oceandb.js" language="javascript"></script> 11 15 </head> 12 <body >16 <body onload="load()" onunload="GUnload()"> 13 17 <div id="header"> 14 18 <div id="main-menu"> -
oceandb/jQuery_Prototype/script/oceandb.js
r57 r59 14 14 $('#map-menu').accordion({ header: "h3" }); 15 15 }); 16 17 function load() { 18 if (GBrowserIsCompatible()) { 19 var map = new GMap2(document.getElementById("map")); // 取得 DOM 中,名稱為 map 的元件 20 map.addControl(new GLargeMapControl()); // 加入左上角比例尺規控制列 21 map.addControl(new GScaleControl()); // 加入左下角比例尺狀態列 22 map.addControl(new GMapTypeControl()); // 加入右上角"地圖","衛星","混合地圖"按鈕 23 map.setCenter(new GLatLng(23.8,121), 7); // 設定預設經緯度北緯 23.8, 東經 121, 預設比例尺 100 公里(7) 24 map.setMapType(G_SATELLITE_MAP); // 設定預設底圖為"衛星" 25 } 26 }
Note: See TracChangeset
for help on using the changeset viewer.