Adding Reports to Your Own Web Site

If you want to add reports to your own web site you can link directly to the statistics reports in a new tab, use iframes to render up the reports on your pages or embed Cricket Statz online reports in to your existing club or league web site by including some script code in your web site page.  Linking to the stats reports is the easiest.  Embedding code into your web page gives you the most control over the look and feel.

Embedding Code  

Cricket Statz allows all statistics and match reports to be embedded in existing web site by using <script> HTML tags. Script code for doing this is shown in the following example. The contents can be formatted using the CSS tags shown below. Note that HTML/CSS coding experience is required.

<style type="text/css">
.ss_table {border-collapse:collapse;}
.ss_matchtable {border-collapse:collapse;width:500px;}
.ss_tablehead {font-family:Arial;font-size:8pt;color:#000000;font-weight: bold}
.ss_tablerow {font-family:Arial;font-size:8pt;color:#000000}
.ss_title {font-family:Arial;font-size:12pt;color:#000000;font-weight:bold; background-color:#cc4444;}
.ss_menu {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #222222}

.ss_howout {
    font-family: Arial;

    margin-right: 4px;
    border-radius: 16px;
    background-color: #999999;
    color: #fff;
    font-weight: 900;
    text-align: center;
    padding: 0px 8px;
    white-space: nowrap;


<script src=''>


<script src=''>




  • This example shows a player/official list and a match report on the same page.

  • The style sheet shows the various styles used in the reports. You can change the style settings to match fonts and colors to your own web site.

  • The <script> section is the code that includes the relevant report.  You can include any reports that are generated from the ‘reports’ section of the Cricket Statz online admin panel by substituting the appropriate mode, club, grade, etc. parameters in the above script “src=” examples.

  • If you want to display a match (using &mode=100) but don't know the match ID then you can use the parameters &ground=[groundname]&datetime=[datetimeplayed] to fetch the match report instead

  • You can change the default number of entries on the report by changing the &limit= value (up to 999)

  • You can turn on player links to open in a new page by adding a &newpage=1 switch to the URL

©2020 CricketStatz.Com | Privacy