JSDM

HTML

x
 
1
<html>
2
  <head>
3
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
    <title>RunJS</title>
5
    <script class="jquery library" src="http://sandbox.runjs.cn/js/sandbox/jquery/jquery-1.8.2.min.js" type="text/javascript"></script>
6
    <script type="text/javascript" src="http://sandbox.runjs.cn/js/sandbox/jquery-plugins/jQueryRotate.2.2.js"></script>
7
  </head>
8
  <body>   
9
    <div id="lottery"><img id="imgs" src="http://yunpan.360.cn/resource/img/anniversary/disc-rotate.gif" viewBox="0 0 352 30" style="position: absolute; left: 47px; top: 47px; width: 352px; height: 352px;" id="imgs" class="image" />
10
        <div class="arrow"></div>
11
        <div class="lot-btn first">
12
          <span></span>
13
        </div>
14
      </div>
15
16
  </body>
17
</html>

CSS

xxxxxxxxxx
37
 
1
body{
2
  background:#FFDD82
3
}
4
#lottery {
5
  background: url("http://yunpan.360.cn/resource/img/anniversary/disc-bg.gif?v=79804") no-repeat scroll 0 0 transparent;
6
  height: 450px;
7
  left: 50px;
8
  position: absolute;
9
  width: 450px;
10
}
11
#lottery .arrow {
12
  background: url("http://yunpan.360.cn/resource/img/anniversary/arrow.png?v=1bde2") no-repeat scroll 0 0 transparent;
13
  height: 191px;
14
  left: 207px;
15
  position: absolute;
16
  top: 91px;
17
  width: 32px;
18
}
19
#lottery .lot-btn {
20
  height: 92px;
21
  left: 177px;
22
  overflow: hidden;
23
  position: absolute;
24
  top: 181px;
25
  width: 91px;
26
}
27
#lottery .lot-btn span {
28
  cursor: pointer;
29
  display: block;
30
  height: 92px;
31
  position: relative;
32
  width: 91px;
33
}
34
35
#lottery .first span {
36
  background: url("http://yunpan.360.cn/resource/img/anniversary/buttons_01.png?v=8bc8e") no-repeat scroll 0 0 transparent;
37
}
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
19
 
1
$(function() {
2
3
  $(".lot-btn").click(function() {
4
5
    for (var i = 0; i <= 10000; i++) {
6
7
      $("#imgs").rotate({
8
        animateTo: i,
9
        duration: 10000
10
      });
11
      if (i >= 3986) {
12
13
        break;
14
      }
15
16
    }
17
  })
18
19
});
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................