vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Anything for "citations" or mouse-over boxes? (https://vborg.vbsupport.ru/showthread.php?t=323284)

Outlaw Mantis 08-18-2016 04:33 PM

Anything for "citations" or mouse-over boxes?
 
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 [title][/title] tags, then the replacement code could be:

HTML Code:

<span title="{option}" style="border-bottom: 1px dotted #000; cursor: help">{param}</span>
And then when posting, your users could enter something like:

[title=Tooltip text is here]displayed text is here[/title]

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.


All times are GMT. The time now is 01:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01002 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete