网页代码设计技巧系列之-变色的旋转圆圈.doc_第1页
网页代码设计技巧系列之-变色的旋转圆圈.doc_第2页
网页代码设计技巧系列之-变色的旋转圆圈.doc_第3页
网页代码设计技巧系列之-变色的旋转圆圈.doc_第4页
网页代码设计技巧系列之-变色的旋转圆圈.doc_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

变色的旋转圆圈 var CoLoUrS=new Array(ff0000,ffffff,0000ff,ffffff);var dots=16;var ThingsInArray;var step=0.3;var a_StEp=0.05;var RunTime=0;var currStep = 0;var Xpos = 0;var Ypos = 0;var cntr=70;var count_a=0;var move_a=1;var curColour;var count=0;var move=1;var brwsr=(document.layers)?1:0;if (brwsr)for (i=0; i dots; i+)document.write();var x = document;ThingsInArray=new Array(x.a0,x.a1,x.a2,x.a3,x.a4,x.a5,x.a6,x.a7,x.a8,x.a9,x.a10,x.a11,x.a12,x.a13,x.a14,x.a15)elsedocument.write();for (i=0; i dots; i+)document.write();document.write();var x = ieDiv.all.c.all;ThingsInArray=new Array(x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15)function colourStep()count+=move;if (count = ThingsInArray.length) count=0;count_a+=moveif (count_a = CoLoUrS.length) count_a=0;if (brwsr) ThingsInArraycount.bgColor=CoLoUrScount_a;else ThingsInArraycount.style.background=CoLoUrScount_a;setTimeout(colourStep(),100)function moveAbout()if (brwsr)Ypos = window.pageYOffset+window.innerHeight/2 + window.innerHeight/3.1 * Math.cos(RunTime)/3)*Math.cos(RunTime/50);Xpos = window.pageXOffset+window.innerWidth/2 + window.innerWidth/2.4 * Math.sin(RunTime)/5)*Math.cos(RunTime/30);elseYpos = document.body.scrollTop+document.body.offsetHeight/2 + document.body.offsetHeight/2.8*Math.cos(RunTime)/3)*Math.cos(RunTime/10);Xpos= document.body.scrollLeft+document.body.offsetWidth/2 + document.body.offsetWidth/2.4*Math.sin(RunTime)/5)*Math.sin(RunTime/20);RunTime+=a_StEp;Tma=setTimeout(moveAbout(), 10);function TwistnSpin()if (brwsr)for ( i = 0 ; i 16 ; i+ )var templayer=a+idocument.layerstemplayer.top = Ypos+cntr*Math.cos(currStep + i*4)/10.2)*Math.cos(currStep/10)document.layerstemplayer.left =Xpos+cntr*Math.sin(currStep + i*4)/10.2);elsefor (i=0;iieDiv.all.c.all.length;i+)ieDiv.all.c.alli.style.top = Ypos+cntr*Math.cos(currStep + i*4)/10.2)*Math.cos(currStep/10)ieDiv.all.c.alli.style.left= Xpos+cntr*Math.sin(currStep + i*4)/10.2);currStep+=step;setTimeout(TwistnSpin(),10);function Shrink()cntr-=0.5;GoShrink=setTimeout(Shrink(),10);if (cntr =7

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论