Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 11th, 2010  |  syntax: None  |  size: 0.61 KB  |  views: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         $(document).ready(function() {
  2.  
  3.             $(".signin").click(function(e) {
  4.                 e.preventDefault();
  5.                 $("fieldset#signin_menu").toggle();
  6.                 $(".signin").toggleClass("menu-open");
  7.             });
  8.  
  9.             $("fieldset#signin_menu").mouseup(function() {
  10.                 return false
  11.             });
  12.             $(document).mouseup(function(e) {
  13.                 if($(e.target).parent("a.signin").length==0) {
  14.                     $(".signin").removeClass("menu-open");
  15.                     $("fieldset#signin_menu").hide();
  16.                 }
  17.             });            
  18.  
  19.         });
clone this paste RAW Paste Data