jquery - Is a hatched jqueryui slider range/background possible? -
is possible have range/background of jqueryui slider hatched or filled colour gradient (see http://upload.wikimedia.org/wikipedia/commons/5/5d/unintuitive-rgb.png)
it's not changing colour, rather make ranging red->green depending on variables -- of course may vary @ runtime...
any appreciated!
yes possible.
you need set background of slider div.
<div id="slider" style="background:black"></div>
this cause slider have black background.
that easy part. question how create gradient?
for css implementation @ http://www.webdesignerwall.com/tutorials/cross-browser-css-gradient/ might want csshooks option in jquery streamline it. see https://github.com/brandonaaron/jquery-csshooks examples (there gradient.js csshook, far checked didn't support ie).
for best result, might want set background image instead, example:
<div id="slider" style="background:url(creategradient.aspx?from=000&to=fff&height=5&width=100)"></div>
you'll have write server side code create gradient picture on fly.
Comments
Post a Comment