I am working on a version of "Huck Finn" that displays dialog in different colors, depending on the speaker (purple for Huckleberry, brown for his Pap, etc.) by using CSS like so
#huck {
color: purple;
}
...and HTML like this:
<p><span id="huck">"But some says he got out and got away, and come to America."</span></p>
A working model of this can be seen here
I have a "character mapping" showing which character is which color near the start of the doc, but I realize many readers would forget which color represents which character and, rather than forcing them to go all the way back to the start of the doc to remind themselves, I would like to allow them to hover over the colored text and see in a "popup window" or "tooltip" or what have you, who it is. So if they were to hover over the sentence above (anywhere between "But" and "America") they would see see something like "Huck is speaking".
Is this possible? If so, how?