Display alternating text

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


You can do this via HTML within the confluence page. Check out the following and see if that is an option:

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

Can that code be embedded in a user macro?

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>

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
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

912 views 45 7
Join discussion

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