8 个解决方案
#1
?
#2
使用编写activex方式,网上有很多例子,找找看~
#3
可以将控件做成.cab包。控件会自动下载,自动更新
#4
注意新建控件时的clsid号。
#5
如何打成cab??
#6
如何打成cab?
http://blog.csdn.net/gjd111686/archive/2004/07/07/36221.aspx
http://blog.csdn.net/gjd111686/archive/2004/07/07/36221.aspx
#7
画图用现成的.
<object id=DirectAnimation style="left:0px;width:100%;top:0px;height:300px;border:1 solid #000000" classid="clsid:369303C2-D7AC-11D0-89D5-00A0C90833E6"></object>
<br>
<script>
//StructuredGraphicsControl控件
var iPositionX,iPositionY;
var bMouseClick=false;
var iObjectX="event.clientX-DirectAnimation.offsetLeft-DirectAnimation.offsetWidth/2";
var iObjectY="event.clientY-DirectAnimation.offsetTop-DirectAnimation.offsetHeight/2";
function document.onmousemove()
{
if(bMouseClick)
{
iX=eval(iObjectX);
iY=eval(iObjectY);
var Point=DirectAnimation.DrawSurface;
var Lib=DirectAnimation.Library;
Point.LineColor(Lib.ColorRgb255(255,0,255));
Point.Line(iPositionX,iPositionY,iX,iY);
DirectAnimation.DrawSurface=Point;
iPositionX=iX,iPositionY=iY;
}
}
function document.onclick()
{
bMouseClick=!bMouseClick;
iPositionX=eval(iObjectX);
iPositionY=eval(iObjectY);
}
</script>
<br>
<br>
<input type=button value="清除屏幕" onclick="try{DirectAnimation.Clear();}catch(e){window.confirm(e);}">
<object id=DirectAnimation style="left:0px;width:100%;top:0px;height:300px;border:1 solid #000000" classid="clsid:369303C2-D7AC-11D0-89D5-00A0C90833E6"></object>
<br>
<script>
//StructuredGraphicsControl控件
var iPositionX,iPositionY;
var bMouseClick=false;
var iObjectX="event.clientX-DirectAnimation.offsetLeft-DirectAnimation.offsetWidth/2";
var iObjectY="event.clientY-DirectAnimation.offsetTop-DirectAnimation.offsetHeight/2";
function document.onmousemove()
{
if(bMouseClick)
{
iX=eval(iObjectX);
iY=eval(iObjectY);
var Point=DirectAnimation.DrawSurface;
var Lib=DirectAnimation.Library;
Point.LineColor(Lib.ColorRgb255(255,0,255));
Point.Line(iPositionX,iPositionY,iX,iY);
DirectAnimation.DrawSurface=Point;
iPositionX=iX,iPositionY=iY;
}
}
function document.onclick()
{
bMouseClick=!bMouseClick;
iPositionX=eval(iObjectX);
iPositionY=eval(iObjectY);
}
</script>
<br>
<br>
<input type=button value="清除屏幕" onclick="try{DirectAnimation.Clear();}catch(e){window.confirm(e);}">
#8
或者用VML也可以
参考http://blog.csdn.net/gjd111686/archive/2004/07/07/36245.aspx
参考http://blog.csdn.net/gjd111686/archive/2004/07/07/36245.aspx
#1
?
#2
使用编写activex方式,网上有很多例子,找找看~
#3
可以将控件做成.cab包。控件会自动下载,自动更新
#4
注意新建控件时的clsid号。
#5
如何打成cab??
#6
如何打成cab?
http://blog.csdn.net/gjd111686/archive/2004/07/07/36221.aspx
http://blog.csdn.net/gjd111686/archive/2004/07/07/36221.aspx
#7
画图用现成的.
<object id=DirectAnimation style="left:0px;width:100%;top:0px;height:300px;border:1 solid #000000" classid="clsid:369303C2-D7AC-11D0-89D5-00A0C90833E6"></object>
<br>
<script>
//StructuredGraphicsControl控件
var iPositionX,iPositionY;
var bMouseClick=false;
var iObjectX="event.clientX-DirectAnimation.offsetLeft-DirectAnimation.offsetWidth/2";
var iObjectY="event.clientY-DirectAnimation.offsetTop-DirectAnimation.offsetHeight/2";
function document.onmousemove()
{
if(bMouseClick)
{
iX=eval(iObjectX);
iY=eval(iObjectY);
var Point=DirectAnimation.DrawSurface;
var Lib=DirectAnimation.Library;
Point.LineColor(Lib.ColorRgb255(255,0,255));
Point.Line(iPositionX,iPositionY,iX,iY);
DirectAnimation.DrawSurface=Point;
iPositionX=iX,iPositionY=iY;
}
}
function document.onclick()
{
bMouseClick=!bMouseClick;
iPositionX=eval(iObjectX);
iPositionY=eval(iObjectY);
}
</script>
<br>
<br>
<input type=button value="清除屏幕" onclick="try{DirectAnimation.Clear();}catch(e){window.confirm(e);}">
<object id=DirectAnimation style="left:0px;width:100%;top:0px;height:300px;border:1 solid #000000" classid="clsid:369303C2-D7AC-11D0-89D5-00A0C90833E6"></object>
<br>
<script>
//StructuredGraphicsControl控件
var iPositionX,iPositionY;
var bMouseClick=false;
var iObjectX="event.clientX-DirectAnimation.offsetLeft-DirectAnimation.offsetWidth/2";
var iObjectY="event.clientY-DirectAnimation.offsetTop-DirectAnimation.offsetHeight/2";
function document.onmousemove()
{
if(bMouseClick)
{
iX=eval(iObjectX);
iY=eval(iObjectY);
var Point=DirectAnimation.DrawSurface;
var Lib=DirectAnimation.Library;
Point.LineColor(Lib.ColorRgb255(255,0,255));
Point.Line(iPositionX,iPositionY,iX,iY);
DirectAnimation.DrawSurface=Point;
iPositionX=iX,iPositionY=iY;
}
}
function document.onclick()
{
bMouseClick=!bMouseClick;
iPositionX=eval(iObjectX);
iPositionY=eval(iObjectY);
}
</script>
<br>
<br>
<input type=button value="清除屏幕" onclick="try{DirectAnimation.Clear();}catch(e){window.confirm(e);}">
#8
或者用VML也可以
参考http://blog.csdn.net/gjd111686/archive/2004/07/07/36245.aspx
参考http://blog.csdn.net/gjd111686/archive/2004/07/07/36245.aspx