Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. $(document).find('.pccenter').mouseenter(function(){
  2. if (loading != true) {
  3. $(this).fadeTo(1000, 1);
  4. $(this).parent().children('.shinepc').fadeTo(2000, 0.4);
  5. }
  6. });
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. var position ="";
  14. var shinepos = "";
  15. $('.pccenter').mouseover(function(){
  16. position = $(document).find('.pccenter').attr('id');
  17. shinepos = $(document).find('.shinepc').attr('id');
  18. console.log(shinepos);
  19. console.log(position);
  20. if (loading != true) {
  21. $('#' + position).fadeTo(1000, 1);
  22. $('#' + shinepos).fadeTo(2000, 0.4);
  23. }
  24. });
  25.  
  26. $('.pccenter').mouseleave(function(){
  27. position = $(document).find('.pccenter').attr('id');
  28. shinepos = $(document).find('.shinepc').attr('id');
  29. if (loading != true) {
  30. $('#' + position).fadeTo(1000, 0.6);
  31. $('#' + shinepos).fadeTo(3000, 0.2);
  32. }
  33. });
  34.  
  35. <div class="pcmidr" id="pcmidr"><div class="shinepcmidr" id="shinepcmidr"></div></div>
  36. <div class="pccenter" id="pccenter"><div class="shinepc" id="shinepc"></div></div>
  37.  
  38. $(document).find('.pccenter').mouseleave(function(){
  39. if (loading != true) {
  40. $(this).fadeTo(1000, 0.6);
  41. $(this).parent().children('.shinepc').fadeTo(3000, 0.2);
  42. }
  43. });
  44.  
  45. $(document).find('.pccenter').mouseover(function(){
  46. if (loading != true) {
  47. $(this).fadeTo(1000, 1);
  48. $(this).parent().children('.shinepc').fadeTo(2000, 0.4);
  49. }
  50. });
  51.  
  52. $(document).find('.pccenter').mouseleave(function(){
  53. if (loading != true) {
  54. $(this).fadeTo(1000, 0.6);
  55. $(this).parent().children('.shinepc').fadeTo(3000, 0.2);
  56. }
  57. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement