200分,黑黑黑嘿嘿嘿嘿.......
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rx+=3;
ry+=5;
rz+=2;
xyinput=rx+","+ry;
if(rx>360){rx=0;}
if(ry>360){ry=0;}
if(rz>360){rz=0;}
ccc.style.rotation=rz;
bbc.rotationangle=xyinput;
setTimeout("rot()",200);
}
</script>
</head>
<BODY onload="rot()">
<v:rect id="ccc" style="width:40;height:40;position:absolute;top:50;right:50;rotation:0;" fillcolor="blue">
<o:extrusion id="bbc" on="t" rotationangle="0,0" />
</v:rect></BODY>
</HTML>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rx+=3;
ry+=5;
rz+=2;
xyinput=rx+","+ry;
if(rx>360){rx=0;}
if(ry>360){ry=0;}
if(rz>360){rz=0;}
ccc.style.rotation=rz;
bbc.rotationangle=xyinput;
setTimeout("rot()",200);
}
</script>
</head>
<BODY onload="rot()">
<v:rect id="ccc" style="width:40;height:40;position:absolute;top:50;right:50;rotation:0;" fillcolor="blue">
<o:extrusion id="bbc" on="t" rotationangle="0,0" />
</v:rect></BODY>
</HTML>
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rx+=3;
ry+=5;
rz+=2;
xyinput=rx+","+ry;
if(rx>360){rx=0;}
if(ry>360){ry=0;}
if(rz>360){rz=0;}
ccc.style.rotation=rz;
bbc.rotationangle=xyinput;
setTimeout("rot()",200);
}
</script>
</head>
<BODY onload="rot()"><v:line id="ccc" from="0,150" to="500,0" style="position:static;font-family:Times New Roman;" title=".........">
<v:path textpathok="t" />
<v:textpath string="FISH" on="t" fitpath="t"/>
<v:fill id="tta" on="t" color="rgb(255,255,255)" />
<o:extrusion id="bbc" on="t" foredepth="20" rotationangle = "0,0"/>
</v:line>
</BODY>
</HTML>
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rx+=3;
ry+=5;
rz+=2;
xyinput=rx+","+ry;
if(rx>360){rx=0;}
if(ry>360){ry=0;}
if(rz>360){rz=0;}
ccc.style.rotation=rz;
//bbc.rotationangle=xyinput;
setTimeout("rot()",200);
}
</script>
</head>
<BODY onload="rot()"><v:line id="ccc" from="0,150" to="500,0" style="position:static;font-family:Times New Roman;" title=".........">
<v:path textpathok="t" />
<v:textpath string="田" on="t" fitpath="t"/>
<v:fill id="tta" on="t" color="rgb(255,255,255)" />
<o:extrusion id="bbc" on="t" foredepth="20"/>
</v:line>
</BODY>
</HTML>
这200份怎么这么不好得呀?
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rz+=2;
if(rz>360){rz=0;}
ccc.style.rotation=rz;
setTimeout("rot()",200);
}
</script>
</head>
<BODY onload="rot()"><v:line id="ccc" from="0,150" to="500,0" style="position:static;font-family:Times New Roman;" title=".........">
<v:path textpathok="t" />
<v:textpath string="FISH" on="t" fitpath="t"/>
<v:fill id="tta" on="t" color="rgb(255,255,255)" />
</v:line>
</BODY>
</HTML>
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rx+=3;
ry+=5;
rz+=2;
xyinput=rx+","+ry;
if(rx>360){rx=0;}
if(ry>360){ry=0;}
if(rz>360){rz=0;}
ccc.style.rotation=rz;
setTimeout("rot()",1);
}
</script>
</head>
<BODY onload="rot()"><v:line id="ccc" from="0,150" to="500,0" style="position:static;font-family:Times New Roman;" title=".........">
<v:path textpathok="t" />
<v:textpath string="田" on="t" fitpath="t"/>
<v:fill id="tta" on="t" color="rgb(255,255,255)" />
</v:line>
</BODY>
</HTML>
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rx+=3;
ry+=5;
rz+=2;
xyinput=rx+","+ry;
if(rx>360){rx=0;}
if(ry>360){ry=0;}
if(rz>360){rz=0;}
ccc.style.rotation=rz;
setTimeout("rot()",1);
}
</script>
</head>
<BODY onload="rot()"><v:line id="ccc" from="0,150" to="500,0" style="position:static;font-family:Times New Roman;" title=".........">
<v:path textpathok="t" />
<v:textpath string="田" on="t" fitpath="t"/>
<v:fill id="tta" on="t" color="rgb(255,255,255)" />
</v:line>
</BODY>
</HTML>
var ds;
ds = SGI.DrawSurface;
ds.fillcolor(lib.blue);
ds.rect(-50,-50,200,200);
ds.SaveGraphicsState();
ds.transform(lib.rotate2rate(5);
ds.RestoreGraphicsState();
SGI.DrawSurface=ds
RotateMe();
funtcion RotateMe(){
SGI.rotate(2,0,2);
DoTheWork=window.setTimeout("RotatcMe()",50);
}
代码放在head中 在body中调用RotateMe
你能给出一个应用的例子吗?
<HEAD>
<TITLE>circle</TITLE></HEAD>
<BODY >
<HR>
<OBJECT ID=SG1
STYLE="Position:absolute; WIDTH:425; HEIGHT:425; top:10; left;10;Z-INDEX: -1"
CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6">
</OBJECT>
<SCRIPT LANGUAGE="javaScript">
var ds
lib = SG1.Library // 启用DirectAnimation库
ds = SG1.DrawSurface // 启用画板
ds.fillcolor(lib.green) // 设置画板颜色
ds.rect(-50,-50,200,200) // 画矩形ds.SaveGraphicsState()
ds.transform(lib.rotate2rate(5)) // 调用二维空间的旋转ds.RestoreGraphicsState() // 关闭调用二维空间的旋转
SG1.DrawSurface = ds // 返回画好的形状
// 显示在屏幕上
RotateMe()
function RotateMe()
{
SG1.rotate(2,0,2)
DoTheWork=window.setTimeout("RotateMe()",50) //让上面所画的图绕x轴选转
}
</SCRIPT>
</BODY>
</HTML>你把代码保存html格式就可以了。
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>VML </title>
<style>
o\:*{behavior:url(#default#vml)}
v\:*{behavior:url(#default#vml)}
</style>
<script type="text/javascript">
var rx=0,ry=0,rz=0;
var xyinput;
function rot(){
rx+=3;
ry+=5;
rz+=2;
xyinput=rx+","+ry;
if(rx>360){rx=0;}
if(ry>360){ry=0;}
if(rz>360){rz=0;}
ccc.style.rotation=rz;
setTimeout("rot()",1);
}
</script>
</head>
<BODY onload="rot()"><v:rect id="ccc" style="width:100;height:100;position:absolute"/>
</BODY>
</HTML>