Attribute only valid on v:line or v:curve
在做图形处理时遇到以下提示:Attribute only valid on v:line or v:curve先是做直线段的移动,OK。然后加了椭园,在移动时出现上述错误提示。连直线也不能移动了。花了两个小时找不到原因,网上也没有相应的解决方案。重新启动电脑,竟然一近都OK了。恼人![@more@]
似转非转
<html xmlns:v="urn:schemas-microsoft-com:vml"><head><style>v:* {behavior:url(#default#VML);}o:* {behavior:url(#default#VML);}x:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><SCRIPT LANGUAGE="JScript">//点的对象:function point(x0,y0){ this.x = x0; this.y = y0; //向量的模 this.r = Math.sqrt(this.x*this.x+this.y*this.y); var alfa = Math.acos(this.x/this.r); if (this.y >= 0) { alfa = alfa; } else { alfa = 2*Math.PI-a
太阳系
<html xmlns:v="urn:schemas-microsoft-com:vml"><head><style>v:* {behavior:url(#default#VML);}o:* {behavior:url(#default#VML);}x:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><SCRIPT LANGUAGE="JScript">function Deg2Rad(Deg){ return (Deg*Math.PI / 180);}//点x1,y1 经转af(角度)后的新点坐标x2,y2:(椭圆圈不能以此公式计算)// x2 = x1 * Math.cos(alfa1) - (this.Earth0Rx/this.Earth0Ry) * y1 * Math.sin(alfa1);// y2 = y1 * Math.cos(
动态图案01
通过JAVASCRIPT实现图形的波动。以屏幕中心为坐标原点(按F11让屏幕最大化)。(谷来成,2007.3.17)开始开始扩散。停止停止扩散。分解分解动作。开始开始旋转。停止停止旋转。分解分解动作。[@more@]
参数方程下滚动曲线的函数图象
<html xmlns:v="urn:schemas-microsoft-com:vml"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><style>v:* {behavior:url(#default#VML);}o:* {behavior:url(#default#VML);}w:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><script language=javascript>//点的对象:function point(x0,y0){ this.x = x0; this.y = y0; //向量的模 this.r = Math.sqrt(this.x*this.x+this.y*this.y); var alfa = Math.acos(this.x/