Tutorials Code to create text running on top of forum

XFModz

Administrator
Staff member
Admin
‎1 Year of Service‎
Below is an article that guides you to add 1 or more running (or non-running) text paragraphs. This guide helps you to put the topics you want at the top of the forum (specifically below the breadcrumb and above the title bar). It is just a guide for you to know more, if you do not like it, you can skip it.
Go to acp -->Styles--> Find the template forum_list, find the line:
Code:
<xf:h1>{$xf.options.boardTitle}</xf:h1>
Add Below
Code:
<marquee direction="left" style ="border:green 1px SOLID" scrollamount="3" align="baseline" width="100%" loop="10000" scrolldelay="60" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="margin-left :50px"><b><font color="red">YOUR TEXT HERE</font></span><span style="margin-left :50px"><font color="blue">YOUR TEXT HERE</font></span><span style="margin-left :50px"><font color="green">YOUR TEXT HERE</font></b></span></marquee>

In which:
direction="left" : the text will run from right to left.
onmouseover="this.stop()" onmouseout="this.start()" : move the mouse to stop, release the mouse to run.
span style="margin-left:50px" : this code is intended to divide the distance between the contents (if you want the text to run with multiple contents). Edit 50px with the distance you want.
style="border:green 1px SOLID" : frame the text, here I choose a frame with a green border, 1 px thick. You can edit it again.
Content 1, 2, 3: you replace the content you want to display here.
 
Back
Top