Guest User

Untitled

a guest
Jan 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. $("a.mbl").click(function() {
  2.  
  3. var mblid = $(this).attr("id");
  4.  
  5. $("#mid-box-left").fadeOut(250, function() {
  6. $("#mid-box-left").html($("#mbl" + mblid).html())
  7. .hide()
  8. .fadeIn(250, function () {
  9. $('#mid-box-left')
  10.  
  11. $("#mid-box").on("mouseenter", "a.testbox", function() {
  12.  
  13. var tbid = $(this).attr("id");
  14.  
  15. $("#mid-box-right").fadeOut(250, function() {
  16. $("#mbr" + tbid).css("display", "block")
  17. .hide()
  18. .fadeIn(250, function () {
  19. $("#mbr" + tbid)
  20. });
  21. });
  22. });
  23.  
  24. $("#mid-box").on("mouseleave", "a.testbox", function() {
  25.  
  26. var tbid = $(this).attr("id");
  27.  
  28. $("#mbr" + tbid).fadeOut(250, function() {
  29. $("#mbr" + tbid).css("display", "none");
  30. $("#mid-box-right").fadeIn(250);
  31. });
  32. });
  33. });
  34. });
  35. return false;
  36. })
Add Comment
Please, Sign In to add comment