Forum .LRN Q&A: Re: Teaching with Images

Collapse
11: Re: Teaching with Images (response to 1)
Posted by Nick Carroll on
Malte, I think all you have to do is wrap the selected text with span tags with the onmouseover pointing to the javascript tooltip library, using the comments as input to the escape function.

If the text is static then you can pre-wrap the text with the span tags, and pull the comments out of the database which you'll use to pass into the escape function. Otherwise you'll have to rely editing HTML if you do it through a form.