Skip to content

yeet#22

Open
Cyber-Leopard wants to merge 1 commit into
mainfrom
bruh
Open

yeet#22
Cyber-Leopard wants to merge 1 commit into
mainfrom
bruh

Conversation

@Cyber-Leopard

@Cyber-Leopard Cyber-Leopard commented Jun 24, 2022

Copy link
Copy Markdown
Collaborator
<script language="javascript"> function ChangeColor() { document.getElementById('btn1').style.backgroundColor = 'Red'; setTimeout("ChangeColor2()", 2000); }
 function ChangeColor2()   
 {  
      document.getElementById('btn1').style.backgroundColor = 'Pink';  
      setTimeout("ChangeColor3()", 2000);  
 }  

 function ChangeColor3()   
 {  
      document.getElementById('btn1').style.backgroundColor = 'Green';  
      setTimeout("ChangeColor4()", 2000);  
 }  

 function ChangeColor4()   
 {  
      document.getElementById('btn1').style.backgroundColor = 'Red';  
 }  
</script> Complete Program:
 <head>  
      <title> New Document </title>  
      <meta name="Generator" content="EditPlus">  
      <meta name="Author" content="">  
      <meta name="Keywords" content="">  
      <meta name="Description" content="">  
      <script language="javascript">  
           function ChangeColor()  
           {  
                document.getElementById('btn1').style.backgroundColor='Red';  
                setTimeout("ChangeColor2()",2000);  
           }  
           function ChangeColor2()  
           {  
                document.getElementById('btn1').style.backgroundColor='Pink';  
                setTimeout("ChangeColor3()",2000);  
           }  
           function ChangeColor3()  
           {  
                document.getElementById('btn1').style.backgroundColor='Green';  
                setTimeout("ChangeColor4()",2000);  
           }  
           function ChangeColor4()  
           {  
                document.getElementById('btn1').style.backgroundColor='Red';  
           }  
      </script>  
 </head>  

 <body>  
      <input type="button" onmouseover="ChangeColor()" value="Button" id="btn1" />  
 </body>  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants