LeagueCMS
competition management for DragonFly CMS

Scrolling Blocks

The public support form for mComp, online gaming Competition Management Software
Reply to topicReply to topic Printer Friendly Page
Forum FAQSearchView unanswered posts

Suggestion

Post Posted: Thu Mar 20, 2008 9:01 pm

How to make the recent matches scroll? I would love to have that feature.

pa1n
Newbie
Newbie
 

Scrolling Blocks

Post Posted: Thu Mar 20, 2008 10:27 pm

A block works by adding data to a variable called $content. To make any static block scroll look for this variable in the block file and make sure this is the first line of code that relates to it :-

PHP:

$content
.= '<marquee align="center" direction="up" scrollamount="2" scrolldelay="70" onmouseover="this.stop()" onmouseout="this.start()"><br />';

Then go to the end of the file and add this as the very last line of code that relates to $content :-

PHP:

$content
.= '</marquee>';

i.e. whatever $content contains you wrap it in those 2 lines and then whatever comes between them scrolls.

mark
Site Admin
Site Admin
 
Page 1 of 1



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum