PDA

View Full Version : Anything for "citations" or mouse-over boxes?


Outlaw Mantis
08-18-2016, 04:33 PM
I mean something like...

Say you hover the mouse cursor over this text, a text bubble appears above it with extra information. Is there anything similar to this? It would be handy for adding extra titbits of information to a post without creating extra clutter. And as said in the title, it could also be used to cite an external website, or other uses.

Just thought I'd ask. Thanks.

MarkFL
08-18-2016, 05:18 PM
Most HTML elements can be given a "title" attribute that can contain text that is displayed by a user's browser in a "popup"element. You could create a custom BB Code to do that...say you wanted to used tags, then the replacement code could be:

<span title="{option}" style="border-bottom: 1px dotted #000; cursor: help">{param}</span>

And then when posting, your users could enter something like:

displayed text is here

And the "displayed text is here" would have a dotted border along the bottom to indicate it has a tooltip, and when hovering the mouse cursor over this text, the cursor would change to the help cursor and the text ""Tooltip text is here" will display in the popup.