It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Display alternating text

Patrick Vanhoof Mar 05, 2015

Is it in Confluence possible to display alternating text? What I would like to do is create a box on a page. In that box every e.g. 10 seconds another text is displayed.

Something like you see on many webpages, a sort of banner with e.g. 5 items, each item is displayed for a number of seconds, than the next item is displayed. An example at the top of this page http://www.portofantwerp.com/en.

Can this be done in Confluence?

1 answer

1 vote
Stephen Sifers Community Leader Mar 05, 2015

Patrick,

You can do this via HTML within the confluence page. Check out the following and see if that is an option:
 http://members.core.com/~rnbovara/alternator.html

(This will require use of the HTML macro within confluence https://confluence.atlassian.com/display/DOC/HTML+Macro)

Patrick Vanhoof Mar 06, 2015

Can that code be embedded in a user macro?

Stephen Sifers Community Leader Mar 09, 2015

Yes, you should be able to port this into a user macro. I have other similar macros running without issue. https://confluence.atlassian.com/display/DOC/Writing+User+Macros Another option is to use a Marquee macro (Scrolling text). Here is that macro: <span><marquee behavior="scroll" direction="up" width=100% height=800 > $body </marquee></span>

Patrick Vanhoof Mar 09, 2015

Thanks, I'll try the marquee. My knowledge for how to include the javascript in a user macro is not enough I think, and the alternating text is inside the macro.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

946 views 0 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you