SHARE
TWEET

Untitled

a guest Jul 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="a" style="width:100%;">
  2.        <a href="">bob</a>
  3. </div>
  4.  
  5. <script type="text/javascript">
  6.     $("a").observe('mouseover', function(e) {
  7.             Event.element(e).setStyle({backgroundColor: '#900'});
  8.      });
  9.  
  10.     $("a").observe('mouseout', function(e) {
  11.                 Event.element(e).setStyle({backgroundColor: '#fff'});
  12.     });
  13. </script>
  14.      
  15. <div id="a" style="width:100%;">
  16.        <a href="">bob</a>
  17. </div>
  18.  
  19. <script type="text/javascript">
  20.     $("a").observe('mouseover', function(e) {
  21.             Event.element(e).setStyle({backgroundColor: '#900'});
  22.      });
  23.  
  24.     $("a").observe('mouseout', function(e) {
  25.                 Event.element(e).setStyle({backgroundColor: '#fff'});
  26.     });
  27. </script>
  28.      
  29. $("a").observe('mouseover', function() {
  30.   this.setStyle({backgroundColor: '#900'});
  31. });
  32.  
  33. $("a").observe('mouseout', function() {
  34.   this.setStyle({backgroundColor: '#fff'});
  35. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top