Hello I'm new to HTML Programming.
How do I make it display an image when it reaches a certain number on the slider? (i.e. When range==5 it displays image x.jpg)
Code:
<html>
<body>
<input type="range" min="0" max="50" value="0" step="5" onchange="showValue(this.value)" />
<span id="range">0</span>
<script type="text/javascript">
function showValue(newValue)
{
document.getElementById("range").innerHTML=newValue;
}
</script>
</body>
</html>
Comment