Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type='text/javascript'>//<![CDATA[
  2. $(document).ready(function(){
  3. jQuery.fn.shake = function() {
  4. this.each(function(i) {
  5. $(this).css({ "position" : "absolute" });
  6. for (var x = 1; x <= 3; x++) {
  7. $(this).animate({ left: 43 }, 10).animate({ left: 23 }, 50).animate({ left:23},10).animate({ left: 13 }, 50).animate({ left: 43 }, 50).animate({ left: 33 },50).animate({ left: 43 }, 50);
  8.     }
  9. });
  10. return this;
  11. }
  12.  
  13.  
  14. $("#logo").click(function() {
  15. $(this).shake();
  16.  
  17. });
  18.  
  19. $("#logo").click();
  20.  
  21. });//]]>  
  22.  
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement