Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HTML>
- <HEAD>
- <TITLE>Arduino</TITLE>
- </HEAD>
- <BODY>
- <H1><center>ARDUINO WEB BUTTON</center></H1>
- <br>
- <table align='center' border=10 bgcolor='green' ><th><h2><div onmousedown='mDown(this,"1ON")' onmouseup='mUp(this,"1OFF")' style='background-color:'#D94A38';width:130px;height:30px;padding:10px;'>-0-</div></table>
- <br>
- <table align='center' border=10 bgcolor='green' ><th><h2><div onmousedown='mDown(this,"2ON")' onmouseup='mUp(this,"2OFF")' style='background-color:'#D94A38';width:130px;height:30px;padding:10px;'>-0-</div></table>
- <br>
- <table align='center' border=10 bgcolor='green' ><th><h2><div onmousedown='mDown(this,"3OFF")' onmouseup='mUp(this,"3OFF")' style='background-color:'#D94A38';width:130px;height:30px;padding:10px;'>-0-</div></table>
- <script>
- function mDown(obj,comando){obj.style.backgroundColor='#1ec5e5';obj.innerHTML='ACESO';location.href="?" + comando}
- function mUp(obj,comando){obj.style.backgroundColor='#D94A38';obj.innerHTML='APAGADO';location.href="?" + comando}
- </script>
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement