The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Sidney Anderson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2014

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 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 will 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>
KM
February 17, 2015

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

1 vote
NathanG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 15, 2016
TAGS
AUG Leaders

Atlassian Community Events