在什么时候设ActiveX的属性? document.all.activexID.readyState="complete" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我加啦如下代码,但没有运行,请斑竹和各位大虾指点!<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript><!--var a=0;var b='';var TimeoutID = 0;function defaultHtm(){ if (document.all.DWebDvrView1.readyState!="complete") { TimeoutID = window.setTimeout("defaultHtm()", 100); } else { resize(); if (TimeoutID != 0) window.clearTimeout(timeoutID) } }function resize(){var w = document.all.bd.clientWidth, h = document.all.bd.clientHeight;var DwebW,DwebH;//====================================================document.all.DWebDvrView1.height=h -3 -20;document.all.DWebDvrView1.width= document.all.DWebDvrView1.height * 352/288;document.all.DWebDvrView1.style.left= (w-document.all.DWebDvrView1.width)/2;document.all.DWebDvrView1.style.top=3;DwebW = document.all.DWebDvrView1.width;DwebH = document.all.DWebDvrView1.height;//====================================================document.all.TimeStamp1.style.left=(w-DwebW)/2+((DwebW/2 - 10))/2;document.all.TimeStamp1.style.top=h-20;//====================================================document.all.select1.style.left= (w-DwebW)/2+DwebW/2+(DwebW/2-102-50)/2;document.all.select1.style.top=h-20;document.all.select1.style.width= 102;document.all.select1.style.height=23;selectTimeStamp();//var timeoutID = window.setTimeout("setPassword()",2000)//window.clearTimeout(timeoutID)}function setPassword(){DWebDvrView1.Password=a; }function selectTimeStamp(){TimeStamp1.checked = true;DWebDvrView1.TimeStamp = true; toquery();DWebDvrView1.Password=a; DWebDvrView1.IPAddress=b; }function toquery() { var tmpstr=unescape(self.parent.location.search); var tmp=tmpstr.indexOf('?') ; tmpstr=tmpstr.substring(tmp+3,tmpstr.length); a=parseInt(tmpstr);//var strs=tmpstr.split('&');//for (var i=0;i<strs.length;i++) // eval(strs[i]+";"); //========================================================= b=unescape(self.parent.location.hostname);//=========================================================}<BODY onresize="resize()" onload="defaultHtm()" id=bd bgcolor="#808080"> 加上断点调试一下,你的obj是什么? 从camera 采集的图片。能否给我一个windows script debuger的中文版download 连接 onload="setTimeout(defaultHtm,100)" 延迟看看? 只有延时吗,ActiveX没有产生object后的flag,或事件吗 JS实现下载文件? 函数customerwidth;与customerwidth();的区别 修改ext组件属性 如何用js修改一个自定义的标签的属性值 各位,小弟有一个难题,自己不能解决,请大家帮忙看一下,是否可以解决这个矛盾. 说个原因 或者给点资料看看!!! 有没有办法禁止框架页面的弹出广告? 选项卡 请教如何从下面这段代码中找出数据源究竟在哪里???在线等... 请教如何实时获取鼠标所指的超级连接地址,谢谢大家! JavaScript怎样弹出一个输入对话框,输入过后并且需要得到值. 请问怎样设置一个网页中ActiveX的属性,条件是在ActiveX运行之前,请问有什么事件吗?
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
var a=0;
var b='';
var TimeoutID = 0;function defaultHtm()
{
if (document.all.DWebDvrView1.readyState!="complete")
{
TimeoutID = window.setTimeout("defaultHtm()", 100);
}
else
{
resize();
if (TimeoutID != 0)
window.clearTimeout(timeoutID)
}
}function resize(){
var w = document.all.bd.clientWidth, h = document.all.bd.clientHeight;
var DwebW,DwebH;
//====================================================
document.all.DWebDvrView1.height=h -3 -20;
document.all.DWebDvrView1.width= document.all.DWebDvrView1.height * 352/288;
document.all.DWebDvrView1.style.left= (w-document.all.DWebDvrView1.width)/2;
document.all.DWebDvrView1.style.top=3;DwebW = document.all.DWebDvrView1.width;
DwebH = document.all.DWebDvrView1.height;
//====================================================
document.all.TimeStamp1.style.left=(w-DwebW)/2+((DwebW/2 - 10))/2;
document.all.TimeStamp1.style.top=h-20;
//====================================================
document.all.select1.style.left= (w-DwebW)/2+DwebW/2+(DwebW/2-102-50)/2;
document.all.select1.style.top=h-20;
document.all.select1.style.width= 102;
document.all.select1.style.height=23;
selectTimeStamp();
//var timeoutID = window.setTimeout("setPassword()",2000)
//window.clearTimeout(timeoutID)}
function setPassword()
{
DWebDvrView1.Password=a;
}function selectTimeStamp(){
TimeStamp1.checked = true;
DWebDvrView1.TimeStamp = true;
toquery();
DWebDvrView1.Password=a;
DWebDvrView1.IPAddress=b;
}function toquery()
{
var tmpstr=unescape(self.parent.location.search);
var tmp=tmpstr.indexOf('?') ;
tmpstr=tmpstr.substring(tmp+3,tmpstr.length);
a=parseInt(tmpstr);
//var strs=tmpstr.split('&');
//for (var i=0;i<strs.length;i++)
// eval(strs[i]+";");
//=========================================================
b=unescape(self.parent.location.hostname);
//=========================================================}
<BODY onresize="resize()" onload="defaultHtm()" id=bd bgcolor="#808080">
download 连接