1 <!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd ">2 <HTML>3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">5 <styleMedia= "Screen">6 Body{7 Overflow:Hidden;8 Height:100%;9 margin:0;Ten padding:0; One } A - img{ - width:100%; the Height:100%; - } - </style> - <Scriptsrc= "Http://maroslaw.github.io/rainyday.js/dist/rainyday.0.1.2.min.js"type= "Text/javascript"></Script> + <Scripttype= "Text/javascript"> - functionrun () { + varImage=document.getElementById ('background'); A Image.onload= function() { at varengine= NewRainyday ({ - Image: This, - }); - Engine.rain ([[1, 2, 8000 ] ]); - Engine.rain ([[3, 3, 0.88 ], [ 5, 5, 0.9 ], [ 6, 2, 1 ] ], -); - } in Image.crossorigin= 'Anonymous'; - image.src= 'http://i.imgur.com/N7ETzFO.jpg'; to } + </Script> - <title>Whoa, shove!</title> the </Head> * <BodyOnLoad= "Run ();"> $ <imgID= "Background"alt= "Background"src="" />Panax Notoginseng </Body> - </HTML>
HTML on the picture to achieve the effect of rain