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?
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 -->
thank you. your code is great.
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?
to center you want to put <center> at beginning and </center> at the end of the script.
thanks
this should be in the block code index
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
Very cool! Many TY! Same question as sport745!
:D
Lori
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>
kind of lost in college homework right now. :)
anyway, here is one, where your user's can select what they want to look at. any sport. good thing about this one is that is nice and small.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Sports Ticker</title>
</head>
<body>
<div align="center"><a href="http://www.tbo.com" target="_blank"><img src="http://info.tbo.com/images/tbologo80x60.jpg" width="80" height="60" border="0" alt=""></a></div>
<!-- BEGIN SPORTS -->
<div align=center>
<table width="115" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<font face="arial, helvetica" size="2"><b><span class="subheadline">
Sports ticker</span></b></font><br>
</td>
<td valign="top" align="right">
<br>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#99cc99" background="http://media.tbo.com/tbo/images/rule.jpg">
<img src="http://media.tbo.com/tbo/images/spacer.gif" width="1" height="13"><br>
</td>
</tr>
</table>
<table width="115" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<applet codebase="http://www.sportsnetwork.com/java/tbonline" code="trueScoreboard2.class" width="115" height="75">
<param name="lheight" value="33">
<param name="lpos" value="4">
<param name="bheight" value="15">
<param name="bpos" value="64">
<param name="fsize" value="9">
<param name="Background" value="#f2f2f2">
<param name="Text" value="#000000">
<param name="ButtonFontColor" value="#000000">
<param name="ButtonUp" value="#cccccc">
<param name="ButtonDown" value="#808080">
</applet>
</td>
<td valign=top>
<img src="http://media.tbo.com/tbo/images/spacer.gif" width="8"><BR>
</td>
</tr>
<tr>
<td valign=top>
<font face="arial, helvetica" size="1"><span class="credits">Click on Setup and click on sports you want to include, then click Done.<br>
</td>
</tr>
</table>
<!-- END SPORTS -->
</body>
</html>
okay, here is code for NBA.
<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/nba/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 -->
Baseball (MBL) when the season starts:
<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/mlb/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 -->
Here is an all sports in one for a front page block "scriptcode block"
<p width="100%" align="center"><embed pluginspage="http://www.adobe.com/go/getflashplayer" src="http://www.yourminis.com/Dir/GetContainer.api?uri=yourminis/cbssportsline/mini:cbsslscoreboard" FlashVars="height=350&width=270&xheight=360&xwidth=280&refreshtime=60000&uri=yourminis%2Fcbssportsline%2Fmini%3Acbsslscoreboard&" type="application/x-shockwave-flash" allowScriptAccess="always" wmode="transparent" width="280" height="360"></embed><br /></p>
here's mine with that has most
goes in a scriptbox
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont"><b>Scoreboard</b></a></td>
</tr>
<tr>
<td valign="top" align="center" width="135" class="alt1">
<form name="jumpy" style="margin: 0px; padding: 0px;">
<select onchange="gone();" size="1" name="example">
<option value="http://www.sportsline.com/autoracing/box-scoreboards/cup" selected="selected">Nascar</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/series" selected="selected">Busch</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/truck" selected="selected">Trucks</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/open_a" selected="selected">IRL</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/open_b" selected="selected">Gran Premio Telmex</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/open_f" selected="selected">F1</option>
<option value="http://www.sportsline.com/nba/box-scoreboards">NBA</option>
<option value="http://www.sportsline.com/nfl/box-scoreboards">NFL</option>
<option value="http://www.sportsline.com/nhl/box-scoreboards">NHL</option>
<option value="http://www.sportsline.com/mlb/box-scoreboards" selected="selected">MLB</option>
<option value="http://www.sportsline.com/u/includes/script/PGA_leader_inc.htm">PGA</option">
<option value="http://www.sportsline.com/collegefootball/box-scoreboards">NCAA Football</option>
<option value="http://www.sportsline.com/collegebasketball/box-scoreboards">NCAA Basketball</option>
<option value="http://www.sportsline.com/olympics/box-scoreboards">Olympics</option>
</select>
</form>
<font size="1">Courtesy CBS Sportsline</font>
<script type="text/javascript" language="javascript">
var displaymode=0;
<!-- This adds the iframe -->
var iframecode="<center><iframe id='external' style='width: 155px; height: 220px;' src='http://www.sportsline.com/mlb/box-scoreboards' scrolling='auto' border='1' marginwidth='1' marginheight='1' align='center' frameborder='0'></iframe></center>";
if (displaymode==0) {
document.write(iframecode);
}
function gone() {
var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value;
if (document.getElementById&&displaymode==0) {
document.getElementById("external").src=selectedurl;
} else if (document.all&&displaymode==0) {
document.all.external.src=selectedurl;
} else {
if (!window.win2||win2.closed) {
win2=window.open(selectedurl);
} else {
win2.location=selectedurl;
win2.focus();
}
}
}
</script>
</td>
</tr>
</table>
<br />
Quote from: graphicguy on December 17, 2007, 06:33:41 AM
here's mine with that has most
goes in a scriptbox
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont"><b>Scoreboard</b></a></td>
</tr>
<tr>
<td valign="top" align="center" width="135" class="alt1">
<form name="jumpy" style="margin: 0px; padding: 0px;">
<select onchange="gone();" size="1" name="example">
<option value="http://www.sportsline.com/autoracing/box-scoreboards/cup" selected="selected">Nascar</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/series" selected="selected">Busch</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/truck" selected="selected">Trucks</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/open_a" selected="selected">IRL</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/open_b" selected="selected">Gran Premio Telmex</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards/open_f" selected="selected">F1</option>
<option value="http://www.sportsline.com/nba/box-scoreboards">NBA</option>
<option value="http://www.sportsline.com/nfl/box-scoreboards">NFL</option>
<option value="http://www.sportsline.com/nhl/box-scoreboards">NHL</option>
<option value="http://www.sportsline.com/mlb/box-scoreboards" selected="selected">MLB</option>
<option value="http://www.sportsline.com/u/includes/script/PGA_leader_inc.htm">PGA</option">
<option value="http://www.sportsline.com/collegefootball/box-scoreboards">NCAA Football</option>
<option value="http://www.sportsline.com/collegebasketball/box-scoreboards">NCAA Basketball</option>
<option value="http://www.sportsline.com/olympics/box-scoreboards">Olympics</option>
</select>
</form>
<font size="1">Courtesy CBS Sportsline</font>
<script type="text/javascript" language="javascript">
var displaymode=0;
<!-- This adds the iframe -->
var iframecode="<center><iframe id='external' style='width: 155px; height: 220px;' src='http://www.sportsline.com/mlb/box-scoreboards' scrolling='auto' border='1' marginwidth='1' marginheight='1' align='center' frameborder='0'></iframe></center>";
if (displaymode==0) {
document.write(iframecode);
}
function gone() {
var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value;
if (document.getElementById&&displaymode==0) {
document.getElementById("external").src=selectedurl;
} else if (document.all&&displaymode==0) {
document.all.external.src=selectedurl;
} else {
if (!window.win2||win2.closed) {
win2=window.open(selectedurl);
} else {
win2.location=selectedurl;
win2.focus();
}
}
}
</script>
</td>
</tr>
</table>
<br />
I like this!!!
Can you change it so that when clicking on a game will take you to a link of that game (if they offer it). As well as open the links in a new window?
Thanks