jia777
发表于 2011-6-25 16:48
很好 看看
xiang158p
发表于 2011-7-12 22:06
cvnnnnnnnnnnnnnnnnn
RUHONG
发表于 2011-7-19 11:11
学习了
RUHONG
发表于 2011-7-19 11:16
本帖最后由 RUHONG 于 2011-7-19 11:22 编辑 <br /><br />看一看效果
关注学校教育
发表于 2011-7-20 18:25
看看吧
wwxin
发表于 2011-7-20 23:35
感谢roger01rao
wwxin
发表于 2011-7-20 23:36
<BR><BR><html><BR><head><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><BR><title>爱的世界</title><BR><meta name="Author" content="【莺燕音画】"><BR><style type="text/css"><BR> body {cursor:crosshair; background:#000; margin:0; padding:0; position:absolute; overflow:hidden; left:0; top:0; width:100%; height:100%;}<BR></style></P>
<><script type="text/javascript"><!--</P>
<>var M = new Array();<BR>M= " 0 1 1 0 0111111 "<BR>M= " 0 1 1 0 0 1 "<BR>M= " 0 1 1 0 0 1 "<BR>M= " 0 1 1 0 0 1 "<BR>M= " 0 1 1 0 0 111111 "<BR>M= " 0 1 1 0 0 1 "<BR>M= " 0 1 1 0 0 1 "<BR>M= " 0 1 1 0 0 1 "<BR>M= " 0000 1 1 0 111111 "<BR> <BR>var object = new Array();<BR>var nx = 0;<BR>var ny = 0;<BR>var nX = 0;<BR>var nY = 0;<BR>var xm = 0;<BR>var ym = 0;</P>
<P>function CObj(N,img,x1,y1,tmp){</P>
<P> this.img = document.createElement("img");<BR> this.img.src = img.src;<BR> this.img.style.position = "absolute";<BR> this.img.style.left = -1000;<BR> document.body.appendChild(this.img);</P>
<P> this.N = N;<BR> this.sx= img.width/2;<BR> this.x0= 0;<BR> this.y0= 0;<BR> this.x1= x1;<BR> this.y1= y1;<BR> this.sto = "object["+N+"].depl();"</P>
<P> this.depl = function() {<BR>with (this) {<BR> x = (x1-x0+nX)*.1;<BR> y = (y1-y0+nY)*.1;<BR> if(Math.abs(x+y)>0.0001){<BR> x0 = x0+x;<BR> y0 = y0+y;<BR> img.style.left = x0;<BR> img.style.top= y0;<BR> } else {<BR> x0 = xm-sx;<BR> y0 = ym-sx;<BR> }<BR> setTimeout(sto,30);<BR>}<BR> }</P>
<P> this.start = function() {<BR>with(this) {<BR> x0 = xm-sx;<BR> y0 = ym-sx;<BR> depl();<BR>}<BR> }</P>
<P> setTimeout("object[" + N + "].start()",tmp);<BR>}</P>
<P>function resize(){<BR> nx = document.body.offsetWidth;<BR> ny = document.body.offsetHeight;<BR> nX = (nx-(M.length*15))/2;<BR> nY = (ny-(M.length*15))/2;<BR>}<BR>onresize = resize;</P>
<P>onload = function() {<BR> imgsrc = document.getElementById("doot").getElementsByTagName("img");<BR> resize();<BR> xm = nx/2;<BR> ym = ny/2.5;</P>
<P> document.onmousemove = function(e) {<BR>if (window.event) e = window.event;<BR>xm = (e.x || e.clientX);<BR>ym = (e.y || e.clientY);<BR> }</P>
<P> k = 0;<BR> for(i=0; i<M.length; i++){<BR>for(j in M){<BR> c = M.charAt(i);<BR> if(c!=" ")object = new CObj(k++, imgsrc, i*15, j*15, k*50);<BR>}<BR> }<BR>}</P>
<P><BR>//--><BR></script><BR></head></P>
<P><body></P>
<P><div style="LEFT: 0px; POSITION: absolute; TOP: 0px" align="left"><img style="FILTER: alpha(opacity=90, finishOpacity=0,style=2)" src="world.jpg" /></div></P>
<P><div id="doot" style="display:none"><BR> <img src="boulMP11.gif"><BR> <img src="bouleGris1.gif"><BR></div></P>
<P></body><BR></html></P>
<P> </P>
<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px" align=left></DIV>
<DIV id=doot style="DISPLAY: none"> </DIV>
木叶蝶
发表于 2011-7-29 23:00
我也来学习学习
原乡人888
发表于 2011-7-30 08:39
看看!学习一下!~
cxhyy
发表于 2011-8-16 11:50
进来学学
页:
4
5
6
7
8
9
10
11
12
13
[14]
15
16