I'm working with a style.filter related function.
Some of my function appear as ...
Everything is working but I'm trying to replace the "A8" part with a percentage typed in by the viewer.
document.getElementById('audio').style.filter = 'progid:DXImageTransform.Microsoft.gradient(startColorstr=#A8' + c.substring(1) + ',endColorstr=#A8' + c.substring(1) + ')';
The percentage is simply a non-decimal number between 0 and 100 typed into a box.
I know how to grab the value of the box (again, it's 0-100) but how do I convert that number into it's "A8" equivalent?