ubny.txt 749 B

123456789101112131415161718
  1. <script>
  2. !function(n){n.fn.snow=function(o){var e=n('<div id="flake" />').css({position:"absolute",top:"-50px"}).html("&#10052;"),t=n(document).height(),a=n(document).width(),i={minSize:10,maxSize:20,newOn:500,flakeColor:"#FFFFFF"},o=n.extend({},i,o);setInterval(function(){var i=Math.random()*a-100,m=.5+Math.random(),r=o.minSize+Math.random()*o.maxSize,d=t-40,l=i-100+200*Math.random(),c=10*t+5e3*Math.random();e.clone().appendTo("body").css({left:i,opacity:m,"font-size":r,color:o.flakeColor}).animate({top:d,left:l,opacity:.2},c,"linear",function(){n(this).remove()})},o.newOn)}}(jQuery);
  3. </script>
  4. <script>
  5. $(document).ready(function(){
  6. $.fn.snow({
  7. minSize: 5,
  8. maxSize: 25,
  9. newOn: 3500,
  10. flakeColor: '#b4cdff'
  11. });
  12. });
  13. </script>