Advertisement
Guest User

aj.js

a guest
Jul 23rd, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function () {
  2.         $(".box1").click(function () {
  3.             if ($("#aboutRed").is(":hidden") === true) {
  4.                 $(".info").fadeOut(250);
  5.                 $("#aboutRed").delay(250).fadeIn(250);
  6.             } else {
  7.                 $("#aboutRed").fadeOut(250);
  8.             }
  9.         });
  10.         $(".box2").click(function () {
  11.             if ($("#aboutYellow").is(":hidden") === true) {
  12.                 $(".info").fadeOut(250);
  13.                 $("#aboutYellow").delay(250).fadeIn(250);
  14.             } else {
  15.                 $("#aboutYellow").fadeOut(250);
  16.             }
  17.         });
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement