Closed xlegs closed 12 years ago
The following code produces a slider with its current value displayed:
< input type="range" min="0" max="100" value="0" step="1" onchange="showValue(this.value,'lights')" /> < span id="lights">0
function showValue(newValue,range) { document.getElementById(range).innerHTML=newValue; }
This works in Webkit browsers (Safari and Chrome) as well as Opera.
When using your script, the value does not update on the first slide. After a second slide, everything is normal.
While this is small, it degrades user experience.
P.S. Awesome job. Having this for IE would be a godsend.
I can't reproduce this. Could you provide more specific steps? What OS and version of Firefox are you running?
The following code produces a slider with its current value displayed:
< input type="range" min="0" max="100" value="0" step="1" onchange="showValue(this.value,'lights')" /> < span id="lights">0
function showValue(newValue,range) { document.getElementById(range).innerHTML=newValue; }
This works in Webkit browsers (Safari and Chrome) as well as Opera.
When using your script, the value does not update on the first slide. After a second slide, everything is normal.
While this is small, it degrades user experience.
P.S. Awesome job. Having this for IE would be a godsend.