[JavaScript]Diamond for your darling

简介:

o_dd.15.png

代码不见得是最优的写法,在网速慢的时候可能会有延时,欢迎批评指正:)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<script language= "javascript" >
     var  count = 1;
     addEvent(window, "load" , diamond);
     
     function  diamond() {
        setTimeout( "setInterval(setImage, 50)" ,2000);
     }
 
     function  setImage() {
         document.images.diamond.src = "http://images.cnblogs.com/cnblogs_com/justinw/229829/o_dd."  + count + ".png" ;
        count ++;
         if  (count  > 15) count  = 1;
     }
</script> 本文转自Justin博客园博客,原文链接:http://www.cnblogs.com/justinw/archive/2010/03/28/1698684.html,如需转载请自行联系原作者
相关文章
|
11月前
|
JavaScript Windows
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 1x.x
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 1x.x
78 0
|
JavaScript 前端开发
.bezierEasingMixin(); ^ Inline JavaScript is not enabled. Is it set in your op..
.bezierEasingMixin(); ^ Inline JavaScript is not enabled. Is it set in your op..
196 0
|
JavaScript Windows
jeecg:Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js
jeecg:Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js
188 0
|
Web App开发 缓存 移动开发
Call Me By Your Name - node.js的小美好
node的出现,真是让用惯js的前端工程师遇见了爱情,进而大踏步的走向了后端,尽管有时候会被质疑,不被理解。那又有什么关系。
1645 0
|
JavaScript 前端开发 Go
转:Build Your First JavaScript Library
http://net.tutsplus.com/tutorials/javascript-ajax/build-your-first-javascript-library/   Step 1: Creating the Library Boilerplate We’ll start with...
807 0
|
JavaScript 前端开发 Go
Know Your JavaScript (Injections)
HTML injection vulnerabilities make a great Voigt-Kampff test for proving you care about security.
915 0
|
JavaScript 前端开发 PHP
Make your pages load faster by combining and compressing javascript and css files
from: http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files //...
1001 0
|
3月前
|
JavaScript Java 测试技术
基于springboot+vue.js+uniapp的客户关系管理系统附带文章源码部署视频讲解等
基于springboot+vue.js+uniapp的客户关系管理系统附带文章源码部署视频讲解等
77 2
|
3月前
|
JavaScript Java 测试技术
基于springboot+vue.js+uniapp的宠物援助平台附带文章源码部署视频讲解等
基于springboot+vue.js+uniapp的宠物援助平台附带文章源码部署视频讲解等
67 4
|
3月前
|
JavaScript Java 测试技术
基于springboot+vue.js+uniapp的宠物交易平台附带文章源码部署视频讲解等
基于springboot+vue.js+uniapp的宠物交易平台附带文章源码部署视频讲解等
60 4