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: 

Display alternating text

Patrick_Vanhoof
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 5, 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
NotTheRealStephenSifersNOPENOPENOPENOPE
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 5, 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
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 6, 2015

Can that code be embedded in a user macro?

NotTheRealStephenSifersNOPENOPENOPENOPE
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 9, 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
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 9, 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.

TAGS
AUG Leaders

Atlassian Community Events