Too long text inside HTML element with dynamic background color
My question expands on this question:
I can fade out text strings (in a table cell in my case) using PNG fading from transparent to background color.
For my application, however, I need a background color that is dynamic and scriptable. On hover, the background color of the table row row changes, and of course this makes the PNG "fader" image visible and ugly.
How can I achieve dynamic / scene-changeable / changeable background color and , I have long text, truncated with fading?
source to share