Tip: Click lines to highlight, hold ctrl/cmd to multi-select

dropDown (3-Jan @ 20:49)

brentg

Syntax Highlighted Code

  1. //Site Switcher
  2. $(document).ready(function() {
  3.   $(".swither_header").click(function () {
  4.     if ($("#links").is(":hidden")) {
  5.       $("#links").slideDown();
  6.     } else {
  7.       $("#links").slideUp();
  8.     }
  9.   });    
  10.     $(".switcher_wrap").hover(
  11.       function () {},
  12.     function () {
  13.       $("#links").slideUp();
  14.     }
  15.   );
  16. });

Plain Code

//Site Switcher
$(document).ready(function() {
  $(".swither_header").click(function () {
    if ($("#links").is(":hidden")) {
      $("#links").slideDown();
    } else {
      $("#links").slideUp();
    }
  });    
    $(".switcher_wrap").hover( 
      function () {},
    function () {
      $("#links").slideUp();
    }
  ); 
});

Codedump Run

Permalink: http://codedumper.com/drop