Display of Recent Scores Scroller

Modified on Wed, 06 Jul 2016 at 12:55 PM


Recent Scores Scroller

You can place a scroller on your site that will show the results of previously played games. The following call will display the recent scores scroller:

myss_ShowRecentScoreScroller(daysofscores, target, slid, lid, scoreLabel);

The following is an explanation of each parameter and their possible values:

1) daysofscores: (integer) This value indicates how many days back you would like to display scores for.

2) target: (string) the id of the HTML element you would like the recent scores to be displayed in.

3) slid: (integer) This value will filter the list of recent scores for a specific season. This is the id of the season you wish to display. This ID can be found under manage seasons and tournaments from the backend and will be displayed with the name of the season. A value of 0 will display all games from all seasons.

4) lid: (integer) This value will filter the list of recent scores for a specific league. A league can encompass many seasons. This is the id of the league you wish to display. This ID can be found under League Names and Associations from the backend and will be displayed with the name of the league. A value of 0 will display all games from all leagues.

5) scoreLabel: (string) if left blank, the label “Recent Scores” will be used.

 

EXAMPLE HTML CODE: 

<div style="width: 100%;" id="myss_scoreslider"></div>
<script type="text/javascript">myss_ShowRecentScoreScroller(1,'#myss_scoreslider', 0, 0, 'Yesterday\'s Results');</script>

 

<div style="width: 100%;" id="myss_standings"></div>
<script type="text/javascript">myss_ShowRecentScoreScroller(1,'#myss_scoreslider', 0, 0, 'Yesterday\'s Results');</script>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article