Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link href="style.css" rel="stylesheet" type="text/css" />
- <title>:O</title>
- </head>
- <body>
- <div id="gora">
- <Br/>
- <div class="tekst"> <center>cwiczenie 7</center> </div>
- <hr width="500px" size="2" bgcolor="#fff" color="#fff"/>
- </div>
- <center><input type="range" min=0 max=300 value="300" id="suwak"/></center>
- <div id="srodek">
- <img src="kot.jpg" id="zdjkota"/>
- <script type="text/javascript" src="cw6.js" ></script>
- </div>
- </body>
- </html>
- ///////////////
- window.onload = start()
- const obraz = document.getElementById("zdjkota");
- function start()
- {
- document.querySelector("#suwak").oninput= function(){
- document.querySelector("#zdjkota").style.height = this.value+"px";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement