<br><div class="msgheader"> <div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode105'));"><u>复主代码</u></span></div>代码如下:</div> <div class="msgborder" id="phpcode105"> <br><html> <br><머리> <br><title>HTML5雨滴特效</title> <br><style media="screen" type="text/css"> <br>img { 디스플레이: 없음; } <br>body { 오버플로: 숨김; } <br>#canvas { 위치: 절대; 상단: 0px; 왼쪽: 0px; } <br></style> <br><script src="/jscss/demoimg/201401/rainyday.js" type="text/javascript"></script> <br><script type="text/javascript"> <br>function 데모() { <br>var 엔진 = new RainyDay('canvas','demo1', window.innerWidth, window.innerHeight); <br>엔진.중력 = 엔진.GRAVITY_NON_LINEAR; <br>engine.trail = 엔진.TRAIL_DROPS; <br>engine.rain([ <br>engine.preset(0, 2, 500) <br>]); <br>engine.rain([ <br>engine.preset(3, 3, 0.88), <br>engine.preset(5, 5, 0.9), <br>engine.preset(6, 2, 1), <br>], 100); <br>} <br></script> <br></head> <br><body onload="demo();"> <br><img id="demo1" src="/jscss/demoimg/201401/8390.jpg" /> <br><div id="cholder"> <br><canvas id="canvas"></canvas> <br></div> <br></body> <br></html> <br> </div>