Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body id = "name">
- <form action="postenhierherdanke" method="post">
- <input type = "range" min = "0" max = "255" value = "0"step = "1" style = "width:255px;"onchange="showValue(this.value)" />
- </form>
- <span id="range">0</span>
- <script type="text/javascript">
- function showValue(newValue)
- {
- document.getElementById("range").innerHTML=newValue;
- }
- var doc = document.getElementById("name");
- var test = document.getElementById('range');
- doc.style.backgroundColor = "'rgb(0,0, + test)";
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment