TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,995
  • Total Topics: 21,326
  • Online today: 148
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 76
  • Total: 76

Block Code for NFL games

Started by blaze416, September 07, 2007, 04:39:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blaze416

Is there any code out there that auto-updates for NFL games?  so it shows a score or something for all of the games that are going on?

jdvarner

#1
Hope Im Helpful here.

found this if your interested in rss feeds http://www.totallyscored.com/

or you can use:

<iframe src="http://www.sportsline.com/nfl/box-scoreboards/" width="140" height="650" frameborder="0" allowTransparency="false" fontcolor="darkgoldenrod"></iframe>

or you can use this for a nice small version with color. :) (you can see it live on my site http://www.jdworld.net if you want to see how it looks)

<script language="Javascript" src="http://espn.go.com/insertfiles/javascript/flash.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="http://espn.go.com/insertfiles/javascript/ua.js"></script>

<script language="Javascript" type="text/javascript">
<!--
// BROWSER CHECK
browser = navigator.appName;
appVer = parseInt(navigator.appVersion);
ie = "Microsoft Internet Explorer";
ns = "Netscape";
if (navigator.appVersion.indexOf("Macintosh") != -1) {
isMac = true;
} else {
isMac = false;
}
//-->
</script>



<!-- begin scores/fantasy/stat tabs -->

<div id="scoresTabs">

<script language="Javascript" type="text/javascript">
// Preload the on states of the tabs for quicker response
<!--
image_scores = new Image();
image_scores.src = "http://espn.starwave.com/i/sportindex/scores_on.gif";

image_fantasy = new Image();
image_fantasy.src = "http://espn.starwave.com/i/sportindex/fantasy_on.gif";

image_statistics = new Image();
image_statistics.src = "http://espn.starwave.com/i/sportindex/statistics_on.gif";

// Pass in the random frequencies of the tabs
var scores_freq = 33; var fantasy_freq = 66; var statistics_freq = 100;

var scores_freq = 33; var fantasy_freq = 66; var statistics_freq = 100;


//Random Equation which determines which tab to show
var randomScoresTab;
var randomScoresSeed = Math.ceil(100*Math.random(100));
if (randomScoresSeed <= scores_freq) {
randomScoresTab = 'scores';
} else if (randomScoresSeed <= fantasy_freq) {
randomScoresTab = 'scores';
} else {
randomScoresTab = 'scores';
}

function changeScores (tabname) {
document.getElementById('tab_scores').style.display = 'none';
document.getElementById('tab_fantasy').style.display = 'none';
document.getElementById('tab_statistics').style.display = 'none';
document.getElementById('tab_'+tabname).style.display = 'block';
document.getElementById('tabnav_scores').src = 'http://espn.starwave.com/i/sportindex/scores.gif';
document.getElementById('tabnav_fantasy').src = 'http://espn.starwave.com/i/sportindex/fantasy.gif';
document.getElementById('tabnav_statistics').src = 'http://espn.starwave.com/i/sportindex/statistics.gif';
document.getElementById('tabnav_'+tabname).src = 'http://espn.starwave.com/i/sportindex/'+tabname+'_on.gif';
}
//-->
</script>

<div><a href="#" onClick="changeScores('scores'); return false;"><img src="http://espn.starwave.com/i/sportindex/scores.gif" width="90" height="20" border="0" id="tabnav_scores" alt="Scores"></a><a href="#" onClick="changeScores('fantasy'); return false;"><img src="http://espn.starwave.com/i/sportindex/fantasy.gif" width="89" height="20" border="0" id="tabnav_fantasy" alt="Fantasy"></a><a href="#" onClick="changeScores('statistics'); return false;"><img src="http://espn.starwave.com/i/sportindex/statistics.gif" width="81" height="20" border="0" id="tabnav_statistics" alt="Statistics"></a></div>
<div id="tab_scores" style="display: none;">
<script language="Javascript" type="text/javascript">
<!--
var SOB=new flashObj();
SOB.flashFile ='http://static.espn.go.com/swf/scorestab/scoreboard.swf?datafile=http://sports.espn.go.com/nfl/format/index/indexTabScores&scoreboardurl=http://sports.espn.go.com/nfl/scoreboard';
SOB.width = '260';
SOB.height = "132";
SOB.DenyIEdl = 'TRUE';
SOB.quality = 'best';
SOB.scale = 'exactfit';
SOB.altTxt = "nfl Scoreboard";
SOB.FlashVer = 5;
SOB.cabVersion = "5,0,0,0";
document.write(SOB.render());
//-->
</script>
</div>

<div id="tab_fantasy" style="display: none;">

<div style="text-align: center; width: 238px;">
<div class="tabpadding">
<a href="http://games.espn.go.com/cgi/ffl/frontpage"><img src="http://games.espn.go.com/banners/04/img/ffl04_40x55.gif" align="right" border="0" id="FFL" alt="FFL"></a>

<span style="font-weight: bold; font-size: 10px; font-family: Verdana">

ESPN.com is your home for Fantasy Football in 2004!<br><br>

* Run a league: <a href="http://games.espn.go.com/s/ffllm/04/tour/index.html?CMP=BAC-LM_ESPNcomTab">League Manager</a><br>
* Join a league: <a href="http://games.espn.go.com/s/ffl/04/splash.html?CMP=BAC-FFL_ESPNcomTab">FFL 2004</a><br>
* Win a league <a href="http://games.espn.go.com/cgi/ffl/edge">Fantasy Edge</a><br>

</span>
</div></div>
</div>

<div id="tab_statistics" style="display: none;">
<div class="tabpadding">
<table cellpadding="2" cellspacing="1" border="0" width="240"><tr bgcolor="#a50400" class="statshead"><td colspan="2"><div><a href="http://sports.espn.go.com/nfl/statistics?stat=rec&sort=rec" style="float: right; display: inline;">See More</a></div>NFC Receptions</td></tr><tr bgcolor="#c7c8c7" class="stats"><td>Torry Holt</td><td align=right>117</td></tr><tr bgcolor="#c7c8c7" class="stats"><td>Randy Moss</td><td align=right>111</td></tr><tr bgcolor="#c7c8c7" class="stats"><td>Anquan Boldin</td><td align=right>101</td></tr><tr><td colspan="2" height="2"></td></tr><tr bgcolor="#a50400" class="statshead"><td colspan="2"><div><a href="/nfl/statistics?stat=rec&sort=rec" style="float: right; display: inline;">See More</a></div>AFC Receptions</td></tr><tr bgcolor="#c7c8c7" class="stats"><td>LaDainian Tomlinson</td><td align=right>100</td></tr><tr bgcolor="#c7c8c7" class="stats"><td>Derrick Mason</td><td align=right>95</td></tr><tr bgcolor="#c7c8c7" class="stats"><td>Hines Ward</td><td align=right>95</td></tr></table>

<!--2003-->
</div>
</div>
</div>
<script language="Javascript" type="text/javascript">
<!--
// This function sets the initial state of the colored tabs
changeScores (randomScoresTab);
-->
</script>
<!-- end scores/fantasy/stat tabs -->

blaze416

thank you.  your code is great. 

blaze416

#3
what code would i remove if i didnt want the fantasy or stats tabs in there?  and how do you center it in the box?

jdvarner

to center you want to put <center> at beginning and </center> at the end of the script.


jdvarner

this should be in the block code index

sport745

HI jdvarner

Thanks for the NFL code. It is great

I was wondering if you had information on how to add a block code for NHL, MLB and NBA or if it was possible.
Any help would be appreciated.

Thanks
Dan

omapie

Very cool! Many TY! Same question as sport745!
:D

Lori

jdvarner

#9
Here is another cool one for NFL.

<p width="100%" align="center"><embed pluginspage="http://www.adobe.com/go/getflashplayer" src="http://www.yourminis.com/Dir/GetContainer.api?uri=yourminis/fantasycontrol/mini:fantasyfootball" FlashVars="container=1&uri=yourminis/fantasycontrol/mini%3Afantasyfootball&width=385&color=1509376&height=370&fullView=1&" type="application/x-shockwave-flash" allowScriptAccess="always"  wmode="transparent" width="385" height="370"></embed><br /><a title="For more widgets please visit www.yourminis.com" href="http://www.yourminis.com/index_minis.aspx?embeddedmini" target="_blank"><img border="0" alt="For more widgets please visit www.yourminis.com" src="http://www.yourminis.com/images/poweredby.png"/></a></p>

This website is proudly hosted on Crocweb Cloud Website Hosting.