honghoavi

Merry Christmas - Santa Claus

Dec 8th, 2012
4,282
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type='text/javascript'>
  2.  $(function(){
  3.     $('html').append('<img id="halo" title="Happy Noel" style="cursor:pointer;position:fixed;z-index:99999" height="120" src="http://lh6.ggpht.com/--821TuXi7o0/UMN0DyDHwtI/AAAAAAAAFL8/V3nQtexRIIk/ghost_thumb.gif"/>')
  4.     setInterval(function(){
  5.        var $X=Math.ceil(Math.random()*$(window).width())
  6.        var $Y=Math.ceil(Math.random()*$(window).height())
  7.        $('img#halo').animate({'left':$X,'top':$Y},5000)
  8.     },5000)
  9.     $('img#halo').click(function(){
  10.         window.open('http://lh6.ggpht.com/--821TuXi7o0/UMN0DyDHwtI/AAAAAAAAFL8/V3nQtexRIIk/ghost_thumb.gif','')
  11.     })
  12.  })
  13. </script>
RAW Paste Data