Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.57 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>javascript 0</title>
  7. <style type="text/css">
  8.     .become {
  9.     background-color: yellow;
  10.     font-size:4em;
  11.    }
  12.     .become1 {background-color:red;
  13.     width:4em; }
  14.    
  15.     .become2{background-color: purple;
  16.     width:6em; }
  17.    
  18.     .become3{background-color: green}
  19.     .wow {
  20.     .ba}
  21.    
  22.     #one {
  23.     transition:1s;}
  24.     #two:hover {
  25.     background-color:silver;}
  26.    
  27.     </style>
  28.  
  29.  
  30. </head>
  31. <body>
  32.  
  33. <div id="tv">
  34.         <p id="one" class="become">lorem</p>
  35.         <p id="two">ipsum</p>
  36.     <p id="three">deta</p>
  37.     <p id="four">epsilon</p>
  38. </div>
  39.  
  40.  
  41.        <script>
  42.            
  43.                var = routine = function(0)
  44.                ourLovelyP.classList.remove("become"+counter);
  45.                counter=counter+1
  46.            if (counter>3) {
  47.            counter=0;
  48.            }
  49.            document.addEventListener("click",routine,false)
  50.            ourLovelyP.addEventListener("transitioned,function(){document.title=hello}
  51.            
  52.     var counter = 0;  
  53.     var ourLovelyP= document.querySelector("#one");
  54.            
  55.            document.onclick = function ()
  56.            {
  57.             ourLovelyP.classList.remove("become"+counter);
  58.             counter = counter + 1;
  59.             ourLovelyP.classList.add("become"+counter);  
  60.            };
  61.            
  62.            document.querySelector("#two")
  63.     .onclick = function () {
  64.    
  65.     };
  66.     </script>
  67. </body>
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement