Display of Real Time ScoreBoard

Modified on Wed, 25 May 2016 at 11:30 AM

The following call will display current games for that day and their scores.

myss_GetScoreCarousel(lid, slid, sportid, useShortNames, isVertical, numSlides, target);

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

1) lid: (integer) This value will filter the scoreboard for only games within a league. 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 not filter the list of games.

2) slid: (integer) This value will filter the scoreboard for only games within a 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 not filter the list of games.

3) sportid: (integer) This value will filter the scoreboard for only games for a specific sport. The following are valid values:

  • MYSS_ALL
  • MYSS_HOCKEY
  • MYSS_SOCCER
  • MYSS_LACROSSE
  • MYSS_FIELDHOCKEY
  • MYSS_OTHER

4) useShortNames: (boolean) A value of true will show the three letter team abbreviation. A value of false will show the full team name.

5) isVertical: (boolean) A value of true will show the scoreboard in a vertical configuration. A value of false will display the scoreboard in a horizontal configuration.

6) numSlides: (interger) This defines the number of games in view at one time. All other games will be accessible through pagination. The scoreboard will automatically default to the game that is currently being played based off of start time.

7) target: (string) the id of the HTML element you would like the standings to be displayed in.

EXAMPLE HTML CODE:

<div class="c t" id="myss_scores"></div>
<script type="text/javascript">myss_GetScoreCarousel(0, 0, 0, false, false, 4,'#myss_scores');</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