SHARE
TWEET

Untitled

a guest Jun 17th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.getElementById("demo").onmouseover = function() {mouseOver1()};
  2. document.getElementById("dd").onmouseover = function() {mouseOver2()};
  3. document.getElementById("demo").onmouseout = function() {mouseOut1()};
  4. document.getElementById("dd").onmouseout = function() {mouseOut2()};
  5.  
  6. function mouseOver1() {
  7.   document.getElementById("demo").style.background = "blue";
  8.   document.getElementById("dem").style.visibility= "visible";
  9. }
  10.  
  11. function mouseOut1() {
  12.   document.getElementById("demo").style.background = "black";
  13.   document.getElementById("dem").style.visibility= "hidden";
  14. }
  15.  
  16. function mouseOver2() {
  17.   document.getElementById("dd").style.background= "green";
  18.   document.getElementById("dem1").style.visibility= "visible";
  19. }
  20.  
  21. function mouseOut2() {
  22.   document.getElementById("dd").style.background = "black";
  23.   document.getElementById("dem1").style.visibility= "hidden";
  24. }
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