How do I create a 'Tool Tip' or 'Hover Over' text display?

Hello, I am writing specifications in confluence pages, and I would like to add definitions to jargon that appear in the document.  In order to avoid over-linking a page, to say a glossary of terms, I would rather the definition of the word appear in a 'Tool-Tip' type of display when the user hovered over the word.

Is there a method for doing this, either with direct support, workaround, or a plug-in?

Thank you!

 

2 answers

1 vote
Davin Studer Community Champion Sep 12, 2014

You could create a user macro that could do this. Something like this should work.

## @param Tip:title=Tool Tip|type=string|required=true|desc=What wil be displayed when the cursor hovers over this area?
#set( $id = $action.dateFormatter.calendar.timeInMillis )
#set( $d = '$' )
#set( $p = '#' )
#requireResource("com.atlassian.auiplugin:aui-experimental-tooltips")
<span id="content$id" title="$paramTip">$body</span>
<script type="text/javascript">
AJS.toInit(function(){
    AJS.${d}("${p}content$id").tooltip({gravity: 's'});
});
</script>

So I should create a macro, say hovertip, with that content? How do I use the macro? Thanks!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked Thursday in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

151 views 5 7
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you