摘要: function SaveMap() { var param = new Object(); param = map.GetMapParam(); var pixelRect = map.GetSize(); param.SetPixelRect(pixelRect); map.GetMapImage(param, onSaveMapComplete, onSaveMapError);}function onSaveMapComplete(url) { if (url != null && url.length 0) { window.open(url, '地图保存', 'menubar= 阅读全文
posted @ 2011-01-29 23:58 因是因非 阅读(184) 评论(0) 推荐(0) 编辑
摘要: function toggle(targetid){ var target = document.getElementById(targetid); if (target.style.display == "block") { target.style.display = "none"; } else { target.style.display = "block"; }} 阅读全文
posted @ 2011-01-29 23:56 因是因非 阅读(1521) 评论(0) 推荐(0) 编辑
摘要: function OnPageLoad() {...map.AttachEvent("oninit", MapInit());map.Init();}function MapInit() {//在任务栏显示地理坐标ShowMapCoord();}function ShowMapCoord() { var action = new ShowMapCoordAction(); map.SetAction(action);}function ShowMapCoordAction() { this.type = "SuperMap.IS.MapCoordAction"; this.Init = fun 阅读全文
posted @ 2011-01-29 23:52 因是因非 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1 在主页面中控制子页面的切换在主页面中的代码以及DOMscript type="text/javascript"function changeUrl(url) { document.getElementById("ifra_operation").src = url; }/scriptdiv id="div_operation" iframe id="ifra_operation" src="A.aspx" runat="server"/iframe/divinput id="submit" onclick="changeUrl('B.aspx')"/2 在子页面 阅读全文
posted @ 2011-01-29 23:43 因是因非 阅读(766) 评论(0) 推荐(0) 编辑