Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <p id="Tekstas">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <div id="myDiv"></div>
- <br>
- <button type="button" onclick="Geltona()">Geltona</button>
- <script>
- function Geltona() {
- document.getElementById("Tekstas").style.color = "#FFFF00";
- }
- </script>
- <button type="button" onclick="Zalia()">Žalia</button>
- <script>
- function Zalia() {
- document.getElementById("Tekstas").style.color = "#7CFC00";
- }
- </script>
- <button type="button" onclick="Raudona()">Raudona</button>
- <script>
- function Raudona() {
- document.getElementById("Tekstas").style.color = "#ff0000";
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement