JavaScript怎么实现调用OCX中的方法 本帖最后由 nanaze 于 2010-08-02 14:39:06 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function getJoGIS(){ var div=document.createElement("div"); var codes=[]; var JoGIS; codes.push('<object id="JoGIS" classid="CLSID:FC8F7F34-C20D-4406-8BAE-EFE2E232227F" width="100%" height="100%" align="top"> '); codes.push('<param name="_Version" value="65536"/>'); codes.push('<param name="_ExtentX" value="2646"/>'); codes.push('<param name="_ExtentY" value="1323"/>'); codes.push('<param name="_StockProps" value="0"/>'); codes.push('</object>'); codes.push('<script language="javascript" for="JoGIS" event="SelectedElement()" type="text/javascript">'); codes.push('clickEvent();'); codes.push('</script>'); codes.push('<script language="javascript" for="JoGIS" event="AddedElement()" type="text/javascript">'); codes.push('AddedElement_();'); codes.push('</script>'); codes.push('<script language="javascript" for="JoGIS" event="OnMouseUp(BUTTON,SHIFT,X,Y)" type="text/javascript">'); codes.push('OnMouseUp_(SHIFT,X,Y);'); codes.push('preCalDIs();'); codes.push('</script>');// codes.push('<script language="javascript" for="JoGIS" event="OnMouseDown(BUTTON,CONTROL,X,Y)" type="text/javascript">');// codes.push('OnMouseDown_(BUTTON,CONTROL,X,Y);');// codes.push('</script>'); div.style.cssText="display:none;" div.innerHTML=codes.join(""); JoGIS = div.innerHTML; //.removeChild(div.getElementsByTagName("object")[0]);// div=null; return JoGIS; }function showJoGIS() { var InnerGDB = getJoGIS(); document.getElementById('divGDB').innerHTML = InnerGDB;}window.onload= function(){ showJoGIS() GeoGIS = document.getElementById("JoGIS"); var url = "http://202.200.85.77/files/1.gdb"; GeoGIS.LoadMapFile( url); GeoGIS.OperateState = "0"; originalScale= GeoGIS.ZoomScale();} 如何用javascript实现中文的ascii码 js 焦点获得和失去问题 请问如何使用Javascript实现添加新的记录到Select选框里面 javaScript 中有没有去字串前后空格的方法 请问大家在做界面时遵循什么规范?对此事有什么自己的看法? 如何获得窗口的宽度和高度 散分,并且暂示自己的作品 这个为什么浏览器报script error!! 求救!!!!!!! 如何在网页中的实现视频控件前加一张透明图片? 如何实现JS下载文件?? 有没有比较好用的,功能强大的js treeview组件,大家谁有,给介绍一下。。。
var div=document.createElement("div");
var codes=[];
var JoGIS; codes.push('<object id="JoGIS" classid="CLSID:FC8F7F34-C20D-4406-8BAE-EFE2E232227F" width="100%" height="100%" align="top"> ');
codes.push('<param name="_Version" value="65536"/>');
codes.push('<param name="_ExtentX" value="2646"/>');
codes.push('<param name="_ExtentY" value="1323"/>');
codes.push('<param name="_StockProps" value="0"/>');
codes.push('</object>');
codes.push('<script language="javascript" for="JoGIS" event="SelectedElement()" type="text/javascript">');
codes.push('clickEvent();');
codes.push('</script>');
codes.push('<script language="javascript" for="JoGIS" event="AddedElement()" type="text/javascript">');
codes.push('AddedElement_();');
codes.push('</script>');
codes.push('<script language="javascript" for="JoGIS" event="OnMouseUp(BUTTON,SHIFT,X,Y)" type="text/javascript">');
codes.push('OnMouseUp_(SHIFT,X,Y);');
codes.push('preCalDIs();');
codes.push('</script>');
// codes.push('<script language="javascript" for="JoGIS" event="OnMouseDown(BUTTON,CONTROL,X,Y)" type="text/javascript">');
// codes.push('OnMouseDown_(BUTTON,CONTROL,X,Y);');
// codes.push('</script>'); div.style.cssText="display:none;"
div.innerHTML=codes.join("");
JoGIS = div.innerHTML; //.removeChild(div.getElementsByTagName("object")[0]);//
div=null;
return JoGIS;
}function showJoGIS() {
var InnerGDB = getJoGIS();
document.getElementById('divGDB').innerHTML = InnerGDB;
}window.onload= function(){
showJoGIS()
GeoGIS = document.getElementById("JoGIS");
var url = "http://202.200.85.77/files/1.gdb";
GeoGIS.LoadMapFile( url);
GeoGIS.OperateState = "0";
originalScale= GeoGIS.ZoomScale();
}