Home › Forums › Back End › how to change background depending on a string value › Reply To: how to change background depending on a string value
July 3, 2016 at 8:46 am
#243342
Participant
if the given value is below some amount then display some different css value
Such a conditional statement could be a javascript function and maybe dynamically updating a value for style.backgroundImage
but … combining this with echoing out this PHP function … maybe not.
Better look into using a HTML5 range slider and nest this range slider within a SVG image.