daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 20th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function playPerro(){
  2.  
  3.     document.getElementById("audiocerdo").pause();
  4.     document.getElementById("audiovaca").pause();
  5.     document.getElementById("audiogato").pause();
  6.  
  7.     document.getElementById("audioperro").play();
  8.     document.getElementById("perro").className="animal pequenio";
  9.  
  10.     var claseAnimacion = document.getElementsByClassName("animal pequenio");
  11.  
  12.     function myPause() {
  13.         document.getElementById("audioperro").pause();
  14.         claseAnimacion.classList.remove("pequenio");
  15.     }
  16.     setInterval(myPause, 5000);
  17.  
  18. }
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