PDA


View Full Version : Scoreboard Module


Pages : [1] 2

juanchi
06-14-2004, 07:21 PM
I'm trying to create a scoreboard module using a script I found surfing the web and I managed to put it on a module but I couldn't arranged the size of the table, can someone help me with this and finish the module, I think many will like to have this module, by now you should know that I'm a newbie when it comes to coding :p , here is the code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Scoreboard</b></span></td>
</tr>
<tr>
<TD vAlign=top align=center height="1" width="135">
<TABLE cellSpacing=0 cellPadding=4 width="50%" border=0>
<TBODY>
<TR>
<TD class=menu-title noWrap></TD></TR></TBODY></TABLE>
<FORM name=jumpy>
<SELECT onchange=gone(); size=1 name=example>
<OPTION value=http://www.sportsline.com/nba/box-scoreboards selected>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>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></SELECT>
</FORM>
<P><font size="1">CBS Sportsline Cortesy</font>
<SCRIPT language=javascript>
var displaymode=0;
<!-- This adds the iframe -->
var iframecode="<center><iframe id='external' style='width:155;height:220;' src='http://www.sportsline.com/nba/box-scoreboards' scrolling='auto' border=0 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>
</table>
<br />

58sniper
06-14-2004, 09:49 PM
Well, that code is a mess. I didn't spend a lot of time on this, but try this:


<table align="center" border="1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Scoreboard</b></span></td>
</tr>
<tr>
<td valign="top" align="center" height="1" width="135">
<form name="jumpy" style="margin: 0px; padding: 0px;">
<select onchange="gone();" size="1" name="example">
<option value="http://www.sportsline.com/nba/box-scoreboards" selected="selected">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">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>
</select>
</form>
<font size="1">CBS Sportsline Cortesy</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/nba/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 />

juanchi
06-16-2004, 06:41 PM
Thanks 58sniper!

TheSauceMaster
06-23-2004, 07:10 PM
awesome , it works very nice :)

Is there a way to change the colors more too match the color layout I have for my page ?
http://www.pacertalk.com

Also I assume if I just want to show NBA scores I could take out the Drop Down Box and it would just show NBA scores correct ?

juanchi
06-24-2004, 08:14 AM
Also I assume if I just want to show NBA scores I could take out the Drop Down Box and it would just show NBA scores correct ?

Sure!

58sniper
06-25-2004, 10:25 PM
Okay - I cleaned this up a little more. Among the changes:
1. fixed the background color issue.
2. Changed the 'default' display to MLB, since basketball season is over (and my Pistons won!)
3. Made the title a link to Sportsline.com
4. removed some redundant tags

Replace the template with:


<table align="center" border="1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont"><b>$vboptions[blockbullet] 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="<A href="http://www.sportsline.com/nba/box-scoreboards">NBA</option">http://www.sportsline.com/nba/box-scoreboards">NBA</option>
<option value="<A href="http://www.sportsline.com/nfl/box-scoreboards">NFL</option">http://www.sportsline.com/nfl/box-scoreboards">NFL</option>
<option value="<A href="http://www.sportsline.com/nhl/box-scoreboards">NHL</option">http://www.sportsline.com/nhl/box-scoreboards">NHL</option>
<option value="http://www.sportsline.com/mlb/box-scoreboards" selected="selected">MLB</option>
<option value="<A href="http://www.sportsline.com/u/includes/script/PGA_leader_inc.htm">PGA</option">http://www.sportsline.com/u/includes/script/PGA_leader_inc.htm">PGA</option>
<option value="<A href="http://www.sportsline.com/collegefootball/box-scoreboards">NCAA">http://www.sportsline.com/collegefootball/box-scoreboards">NCAA Football</option>
<option value="<A href="http://www.sportsline.com/collegebasketball/box-scoreboards">NCAA">http://www.sportsline.com/collegebasketball/box-scoreboards">NCAA Basketball</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 />

mclark2112
06-26-2004, 11:46 PM
So how do I make a module for this? I am new and confused.

58sniper
06-27-2004, 12:29 PM
Create a new template called adv_portal_sports and paste the above code into it.

Add a new module for CMPS:

- Module Title - Sports
- Module Identifier - Leave blank
- OR Template to Include - sport
- Activate and select the column you want it in.
- Save and you are done.

TheSauceMaster
07-05-2004, 07:35 AM
Mucho Thanks , 58sniper works like a dream and I even modifed it to my taste :)

Abe
07-22-2004, 11:39 PM
I fixed up the '<a href' and doubles of the links.

Here you go. Just replace the whole template.

<table align="center" border="1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont"><b>$vboptions[blockbullet] 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/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>
</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 />

This works perfect now.

BTW, next time you make a post with code in it, remove the check by 'Automatically parse links in text'.

MorrisMcD
07-23-2004, 12:55 AM
- OR Template to Include - sport

This is sports with an s unless you rename the template to be adv_portal_sport... This may be obvious, but i'm a newb and some other newbs may have trouble figuring out why its not working..

Great mod.. Thanks!!

Vilandra
08-05-2004, 10:20 PM
This is great work everyone :)

juanchi - would you mind telling me how you found a script like this? I have no idea where to begin to look for one - thanks :)

juanchi
08-06-2004, 07:34 PM
This is great work everyone :)

juanchi - would you mind telling me how you found a script like this? I have no idea where to begin to look for one - thanks :)

To be honest with you I saw this time script for the first time on phpbb and the person who post it on phpbb forum took it from an addon to phpnuke and I only did some research in google looking for it and found it.

Blackbeard
08-08-2004, 02:46 PM
Is this Possible for english, scottish, and european football, and the up and coming Olympics would be great aswell.

caudle
08-09-2004, 07:09 PM
Yes, if the olympics would be possible that would be awesome.

Vilandra
08-11-2004, 10:39 PM
To be honest with you I saw this time script for the first time on phpbb and the person who post it on phpbb forum took it from an addon to phpnuke and I only did some research in google looking for it and found it.
Thanks :) I'll just do some searching :)

go77377
08-13-2004, 01:58 AM
I have spent many hours this evening trying to get this module to work on my site. For some reason I just cannot get it to appear on the homepage of my website. I have checked over and over looking for spelling errors and just anything obvious as to why it isn't showing up, does anyone have a clue as to why it isn't.............. Thanks

Zachariah
08-15-2004, 10:43 PM
add:
<option value="http://www.sportsline.com/olympics/box-scoreboards">Olympics</option>

2004 Olympics - Top 10 countries by ## of metals

Demo: http://www.gzhq.net/

58sniper
08-15-2004, 11:35 PM
add:
<option value="http://www.sportsline.com/olympics/box-scoreboards">Olympics</option>

2004 Olympics - Top 10 countries by ## of metals

Demo: http://www.gzhq.net/
Excellent!

Thanks!

Abe
08-16-2004, 11:15 PM
Thanks. I just tried that code last week but nothing happened. I guess they just activated it. Anyway, how did you get olympics to show automaticly with the title 'olympics'? I got ot to go to olympics but it still says 'mlb'.

58sniper
08-17-2004, 08:51 AM
find

<option value="http://www.sportsline.com/mlb/box-scoreboards" selected="selected">MLB</option>

replace with

<option value="http://www.sportsline.com/mlb/box-scoreboards">MLB</option>

find

<option value=""http://www.sportsline.com/olympics/box-scoreboards">Olympics</option>

replace with

<option value="http://www.sportsline.com/olympics/box-scoreboards" selected="selected">Olympics</option>

Abe
08-17-2004, 04:10 PM
Thanks!

sully02
08-26-2004, 09:31 PM
For some reason, it's still not working for me, even though I've done all the changes. I get the module I had before, but the olympics are not showing up. Here is my code:

<table align="center" border="1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont"><b>$vboptions[blockbullet] 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/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">MLB</option>
<option value="http://www.sportsline.com/olympics/box-scoreboards" selected="selected">Olympics</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>
</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 />

And here is my site so you can see how it's doing: http://www-sports.boards.net

58sniper
08-26-2004, 11:14 PM
Here is my complete module. It's collapsible. It works at http://www.efhs84.com/


<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="13" height="12" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
<tr id="collapseobj_forumhome_$mods[filename]" style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<form name="jumpy" action="post" style="margin: 0px; padding: 0px;">
<select onchange="gone();" size="1" name="example">
<option value="<A href="http://www.sportsline.com/nba/box-scoreboards">NBA</option">http://www.sportsline.com/nba/box-scoreboards">NBA</option>
<option value="<A href="http://www.sportsline.com/nfl/box-scoreboards">NFL</option">http://www.sportsline.com/nfl/box-scoreboards">NFL</option>
<option value="<A href="http://www.sportsline.com/nhl/box-scoreboards">NHL</option">http://www.sportsline.com/nhl/box-scoreboards">NHL</option>
<option value="<A href="http://www.sportsline.com/mlb/box-scoreboards">MLB</option">http://www.sportsline.com/mlb/box-scoreboards">MLB</option>
<option value="<A href="http://www.sportsline.com/u/includes/script/PGA_leader_inc.htm">PGA</option">http://www.sportsline.com/u/includes/script/PGA_leader_inc.htm">PGA</option>
<option value="<A href="http://www.sportsline.com/collegefootball/box-scoreboards">NCAA">http://www.sportsline.com/collegefootball/box-scoreboards">NCAA Football</option>
<option value="<A href="http://www.sportsline.com/collegebasketball/box-scoreboards">NCAA">http://www.sportsline.com/collegebasketball/box-scoreboards">NCAA Basketball</option>
<option value="http://www.sportsline.com/olympics/box-scoreboards" selected="selected">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/olympics/box-scoreboards' scrolling='auto' border='1' marginwidth='1' marginheight='1' align='middle' 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 />

juanchi
09-22-2004, 11:08 PM
Anyone knows why the scoreboard is not showing results for nfl, mlb, etc., etc., I don't know if this is something temporal but the fact is that right now is not working, I hope it is something temporal.

venomx
09-22-2004, 11:48 PM
Yeah I just noticed its not working in the examples..

juanchi
09-23-2004, 07:44 AM
I removed my scoreboard and I'm trying to figure out what is wrong, I think sportsline change something on the script but I'm not sure, you can take a look www.sportsline.com/scoresDOM

scottct1
09-23-2004, 09:58 AM
Mine was working however it stopped working and now I am getting a blank screen, I hope this one can be fixed.

scottct1
09-23-2004, 10:33 AM
Ok I got it working... although it could use some cleaning up... If someone wants to clean it up be my guest. :)

You can see a demo at my site at http://www.satelliteguys.us

<table align="center" border="1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont"><b>$vba_options[portal_blockbullet] The Scoreboard</b></a></td>
</tr>
<tr>
<td valign="top" align="center" width="135" class="alt1">
<font size="1">Courtesy CBS Sportsline</font>
<iframe style='width: 147px; height: 183px;' SRC="http://www.sportsline.com/scoresDOM"></iframe>
</td>
</tr>
</table>
<br />

58sniper
09-23-2004, 03:19 PM
Ok I got it working... although it could use some cleaning up... If someone wants to clean it up be my guest. :)

You can see a demo at my site at http://www.satelliteguys.us (http://www.satelliteguys.us/)

<table align="center" border="1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont"><b>$vba_options[portal_blockbullet] The Scoreboard</b></a></td>
</tr>
<tr>
<td valign="top" align="center" width="135" class="alt1">
<font size="1">Courtesy CBS Sportsline</font>
<iframe style='width: 147px; height: 183px;' SRC="http://www.sportsline.com/scoresDOM"></iframe>
</td>
</tr>
</table>
<br />

This would be a little cleaner:


<table align="center" border="1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><a href="http://www.sportsline.com/" class="smallfont" style="font-weight: bold;">$vba_options[portal_blockbullet] The Scoreboard</a></td>
</tr>
<tr>
<td valign="top" align="center" width="135" class="alt1">
<span style="font-size: 8pt;">Courtesy CBS Sportsline</span>
<iframe style="width: 147px; height: 183px;" src="http://www.sportsline.com/scoresDOM"></iframe>
</td>
</tr>
</table>
<br />


Basically, the changes include getting rid of the old <font> tags, and some minor consistency updates. Appearance is the same.

GiJoe
09-24-2004, 03:06 AM
Anyway to get the links inside to open in a new window?

scottct1
09-24-2004, 10:14 AM
Ok its not working again. :(

If I go to www.sportsline.com the works on their page, however if I go to http://www.sportsline.com/sportsDOM it does not come up only a blank script.

It appears they are blocking anyone from taking the sports score box unless the referer is www.sportsline.com

Any ideas?

paul41598
09-25-2004, 04:24 PM
I'm having the same problem...

go77377
09-25-2004, 08:29 PM
The error that my scoreboard was showing is that it is no longer on that server.

go77377
09-25-2004, 10:18 PM
Here is the error

"Not Found
The requested URL /nfl/box-scoreboards was not found on this server."

C_P
09-28-2004, 12:00 AM
Seems no one has an answer for this yet?

MorrisMcD
09-29-2004, 12:03 AM
Guess not.. I still have a blank scoreboard.. Guess I am taking it down for now :(

paul41598
09-29-2004, 07:47 PM
Mine started working again. Lets hope it stays working...

MorrisMcD
09-29-2004, 09:57 PM
Reactivated that module...

Yup.. Workin for me now too! Thanks for the heads up! Hopefully this is permanent now

sgtmaj
01-28-2005, 05:32 PM
just wondering if this is still a good working scoreboard and if so how do I get the NASCAR results added to the code????? Thanx

TeamGoFast
02-02-2005, 12:09 AM
just wondering if this is still a good working scoreboard and if so how do I get the NASCAR results added to the code????? Thanx

I just uploaded it, and its no good, i love the idea if we could find a fix would be great! :)

sgtmaj
02-04-2005, 12:30 PM
I just uploaded it, and its no good, i love the idea if we could find a fix would be great! :)Well finally got this to work. Here's the code I used:

<div class="blockheader">SPORTS SCORES</div>
<br>

<table align="left" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="20%">
<form name="jumpy" action="post" style="margin: 0px; padding: 0px;">
<select onchange="gone();" size="1" name="example">
<option value="http://www.sportsline.com/nba/box-scoreboards"selected="selected">NBA</option>
<option value="http://www.sportsline.com/nfl/box-scoreboards"selected="selected">NFL</option>
<option value="http://www.sportsline.com/nhl/box-scoreboards"selected="selected">NHL</option>
<option value="http://www.sportsline.com/mlb/box-scoreboards"selected="selected">MLB</option>
<option value="http://www.sportsline.com/collegefootball/box-scoreboards"selected="selected">NCAA Football</option>
<option value="http://www.sportsline.com/collegebasketball/box-scoreboards"selected="selected">College Basketball</option>
<option value="http://www.sportsline.com/olympics/box-scoreboards" selected="selected">Olympics</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards" selected="selected">Auto Racing</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/autoracing/box-scoreboards' scrolling='auto' border='1' marginwidth='1' marginheight='1' align='middle' 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 />

TeamGoFast
02-05-2005, 01:22 PM
so is that giving you access to the nba,nfl, etc etc now?

TeamGoFast
02-05-2005, 01:52 PM
i tried yours and it works however you are missing the border aaround it, so i took your and one of the previous ones posted and added it to it

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="13" height="12" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
<tr id="collapseobj_forumhome_$mods[filename]" style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<form name="jumpy" action="post" style="margin: 0px; padding: 0px;">
<select onchange="gone();" size="1" name="example">
<option value="http://www.sportsline.com/nba/box-scoreboards"selected="selected">NBA</option>
<option value="http://www.sportsline.com/nfl/box-scoreboards"selected="selected">NFL</option>
<option value="http://www.sportsline.com/nhl/box-scoreboards"selected="selected">NHL</option>
<option value="http://www.sportsline.com/mlb/box-scoreboards"selected="selected">MLB</option>
<option value="http://www.sportsline.com/collegefootball/box-scoreboards"selected="selected">NCAA Football</option>
<option value="http://www.sportsline.com/collegebasketball/box-scoreboards"selected="selected">College Basketball</option>
<option value="http://www.sportsline.com/olympics/box-scoreboards" selected="selected">Olympics</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards" selected="selected">Auto Racing</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/autoracing/box-scoreboards' scrolling='auto' border='1' marginwidth='1' marginheight='1' align='middle' 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 />


you can see sample here teamgofast.com (http://teamgofast.com/forums/index.php?)

TeamGoFast
02-05-2005, 01:53 PM
now if someone could tell me how to get moto gp and the Ama races on there i would be golden!!! :)

last time
02-22-2005, 04:21 PM
stupid question, how do i get the links to open in a new window?

target="_blank"?

LEAD_WEIGHT
03-30-2005, 04:12 AM
http://www.sportsline.com/ does not seem to work is there another link that is more stable

gguerra3
04-05-2005, 12:00 PM
How do I set the default scores for the scoreboard module. I would like the default to be NBA right now. The drop down list displays NBA but the content is defaulting to auto racing


<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="13" height="12" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
<tr id="collapseobj_forumhome_$mods[filename]" style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<form name="jumpy" action="post" style="margin: 0px; padding: 0px;">
<select onchange="gone();" size="1" name="example">
<option value="http://www.sportsline.com/nba/box-scoreboards" selected="selected">NBA</option>
<option value="http://www.sportsline.com/nfl/box-scoreboards" selected="selected">NFL</option>
<option value="http://www.sportsline.com/nhl/box-scoreboards" selected="selected">NHL</option>
<option value="http://www.sportsline.com/mlb/box-scoreboards" selected="selected">MLB</option>
<option value="http://www.sportsline.com/collegefootball/box-scoreboards" selected="selected">NCAA Football</option>
<option value="http://www.sportsline.com/collegebasketball/box-scoreboards" selected="selected">College Basketball</option>
<option value="http://www.sportsline.com/autoracing/box-scoreboards" selected="selected">Auto Racing</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/autoracing/box-scoreboards' scrolling='auto' border='1' marginwidth='1' marginheight='1' align='middle' 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 />


You can view it here http://rgvmetro.com
Thanks

TheNFLForums
04-10-2005, 09:14 PM
Hmm I installed it with the latest code, made a new module...and I'm not seeing anything on my new vbadvanced page...Any ideas? (http://www.thenbaforums.com/index.php)

TheNFLForums
04-10-2005, 09:43 PM
Okay I figured that out...

Now...I also wonder how to change it to NBA instead of Racing...and how did people get the little collapse triangles, instead of "expand/collapse" ???