Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $(".test").hover(function() {
  2. $(".test").not($(this)).css({"opacity" : 0.1});
  3. },
  4. function() {
  5. $(".test").css({"opacity" : 1});
  6. });
  7.  
  8. jQuery(".myDivClass").mouseenter(function(){
  9. jQuery(this).siblings().css({"opacity": 0.7});
  10. }).mouseleave(function(){
  11. jQuery(this).siblings().css({"opacity": 1});
  12. });​
  13.  
  14. $(".mydiv").mouseenter(function() {
  15. var currentId = $(this).attr('id');
  16. $("div").not(this).css("background-color", "#7EA9D5");
  17. }).mouseleave(function() {
  18. $(".mydiv").css("background-color", "#06C");
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement