Chinaunix首页 | 论坛 | 博客
  • 博客访问: 55776
  • 博文数量: 20
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 282
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-20 17:23
个人简介

我的博客园;http://www.cnblogs.com/geekpaul/

文章分类

全部博文(20)

文章存档

2015年(7)

2014年(13)

我的朋友

分类: Html/Css

2014-11-23 00:04:20


点击(此处)折叠或打开

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <style media="screen">
  6. body {
  7.     overflow: hidden;
  8.     height: 100%;
  9.     margin: 0;
  10.     padding: 0;
  11. }

  12. img {
  13.     width: 100%;
  14.     height: 100%;
  15. }
  16. </style>
  17. <script src="" type="text/javascript"></script>
  18. <script type="text/javascript">
  19.     function run() {
  20.         var image = document.getElementById('background');
  21.         image.onload = function() {
  22.             var engine = new RainyDay({
  23.                 image : this,
  24.             });
  25.             engine.rain([ [ 1, 2, 8000 ] ]);
  26.             engine.rain([ [ 3, 3, 0.88 ], [ 5, 5, 0.9 ], [ 6, 2, 1 ] ], 100);
  27.         }
  28.         image.crossOrigin = 'anonymous';
  29.         image.src = '';
  30.     }
  31. </script>
  32. <title>哇塞!</title>
  33. </head>
  34. <body onLoad="run();">
  35.     <img id="background" alt="background" src="" />
  36. </body>
  37. </html>

阅读(868) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~