Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  2.  
  3. <div class="linktomouseover">
  4. <a class="nthn">link1</a>
  5. </div>
  6. <div class="linktomouseover2">
  7. <a class="test">link2</a>
  8. </div>
  9.  
  10.  
  11.  
  12. <script>
  13.  
  14. jQuery(function() {
  15. jQuery('.linktomouseover').mouseover(function() {
  16. $(.linktomouseover2).css('background-image', "url('test.jpg')");
  17. });
  18. });
  19.  
  20. </script>
  21.  
  22. jQuery(function() {
  23. jQuery(".linktomouseover").mouseover(function() {
  24. jQuery(".linktomouseover2").css('background-image', "url('test.jpg')");
  25. });
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement