Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Strona - Daniel Jakubowski</title>
- </head>
- <body>
- <h1> Strona - Daniel Jakubowski</h1>
- <input type="button" value="Wstecz" onclick="back()">
- <input type="button" value="Dalej" onclick="go()">
- <br>
- <br>
- <br>
- <input type="button" value="czerwony" onclick="red()">
- <input type="button" value="niebieski" onclick="blue()">
- <input type="button" value="zielony" onclick="green()">
- <br>
- <br>
- <br>
- podaj pierwsza liczbe <input type="tekst" value="" id="first">
- podaj druga liczbe <input type="tekst" value="" id="second">
- <input type="button" value="porównaj" onclick="get()">
- <br>
- <br>
- <br>
- <br>
- <p id="text" onclick="change()">Kliknij tekst by zmienic </p> <input type="button" value="wróć" onclick="normal()">
- <br>
- <br>
- <br>
- <br>
- <script>
- function back() {
- history.back()
- }
- function go() {
- history.go()
- }
- function red() {
- document.bgColor = 'red'
- }
- function blue() {
- document.bgColor = 'blue'
- }
- function green() {
- document.bgColor = 'green'
- }
- function get() {
- var a = document.getElementById('first').value
- var b = document.getElementById('second').value
- if (a > b) {
- alert("pierwsza liczba jest większa od drugiej");
- } else {
- alert("pierwsza liczba nie jest większa od drugiej")
- }
- }
- function change() {
- document.getElementById('text').style.fontSize = '150%'
- }
- function normal() {
- document.getElementById('text').style.fontSize = '100%'
- }
- document.write("ostatnia modyfikacja dokumentu " + document.lastModified)
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement