Welcome Guest ( Log In | Register )

4 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Fantasy Schedule, similar in format to onei0087's nfl schedule
habman
post Sep 14 2007, 12:36 PM
Post #1


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


I have made a code copying onei0087's format for the javascript nfl schedule and applied it to the fantasy schedule.

You can see it on my league site here: BFFL

Just click on the weekly tab to get to where the fantasy schedule appears.

Last update: Script update as of August 28, 2008


Here is the code:

CODE
<script language="JavaScript" type="text/javascript">
<!--

//FYI: Script update as of August 28, 2008

//Manually start fantasy schedule
   var fantasyScheduleClickToStart = false;

//Icon URL including base name and extension
   var fantasyScheduleIconURL = '';
   var fantasyScheduleIconExt = 'gif';

//Use league default icons;  
   var fantasyScheduleDefaultIcon = false;

//Use league default logos
   var fantasyScheduleDefaultLogo = false;

//Decimal Scoring
   var fantasyScheduleDecimals = 1;

//Hide Spread
   var hideFantasyScheduleSpread = false;

//Franchise Name or Nickname display
  var hideFantasyScheduleName = false;
  var useFantasyScheduleNickNames = false;

//Set up your Nick names here if you choose to use them
   var fantasyScheduleNickNames = new Object();  
   fantasyScheduleNickNames['0001'] = 'NICK 1';  
   fantasyScheduleNickNames['0002'] = 'NICK 2';  
   fantasyScheduleNickNames['0003'] = 'NICK 3';  
   fantasyScheduleNickNames['0004'] = 'NICK 4 ';
//         .
//         .
//        etc.

//-->
</script>


<style type='text/css'>

.fantasyscheduleicon {
  height: 30px; /* Use #px for fixed width i.e. 100px */
  width: 30px;  
}

#fantasyScheduleClick {
  background-color: black;
  color: white;
}

</style>

<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/habman_common.js"></script>
<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/fantasyschedule.js"></script>


Naturally you will have to link to your team images.

Any questions just ask.


EDITED TO ADD

Use of franchise names in place of or along with images.

EDITED TO ADD

Ablility to hide spread

EDITED TO ADD

Will now display live scores MFL scores while games are in progress.

EDITED TO ADD

Can now use default logos as well as icons

EDITED TO ADD

ID to the "click to start" link


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
justadj
post Sep 14 2007, 12:50 PM
Post #2


Veteran
***

Group: Members
Posts: 367
Joined: 3-June 04
From: Florida
Member No.: 491



FYI - It's not displaying in FireFox, IE looks good.
Go to the top of the page
 
+Quote Post
jdubbs23
post Sep 14 2007, 01:02 PM
Post #3


Veteran
***

Group: Members
Posts: 38
Joined: 12-June 07
Member No.: 5229



How could I use this layout but incorporate Team Names instead of Icons? Not all my franchises have an icon yet...
Go to the top of the page
 
+Quote Post
habman
post Sep 14 2007, 01:06 PM
Post #4


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


QUOTE (justadj @ Sep 14 2007, 02:50 PM) *
FYI - It's not displaying in FireFox, IE looks good.

Hmm I just checked it out in firefox and it worked for me?

Not sure what the issue might be.





QUOTE (jdubbs23 @ Sep 14 2007, 03:02 PM) *
How could I use this layout but incorporate Team Names instead of Icons? Not all my franchises have an icon yet...

I will have to edit the code a bit. I shouldn't take long. I'll let you know when it's done.


EDITED TO ADD

It's done. You may have to do a CTRL-F5 to clear your cache.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
gd3
post Sep 14 2007, 03:49 PM
Post #5


Veteran
***

Group: Members
Posts: 178
Joined: 3-September 04
Member No.: 1408



...not working for me Hab. I put it in message 11 (which is not currently selcted for display anywhere) and it does nothing...I set it for names rather than icons...when I click onb "update message"....it goes to the "The following message has been saved" screen but shows nothing at all...

gd3

league id 31105
Go to the top of the page
 
+Quote Post
habman
post Sep 14 2007, 03:52 PM
Post #6


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


QUOTE (gd3 @ Sep 14 2007, 05:49 PM) *
...not working for me Hab. I put it in message 11 (which is not currently selcted for display anywhere) and it does nothing...I set it for names rather than icons...when I click onb "update message"....it goes to the "The following message has been saved" screen but shows nothing at all...

gd3

league id 31105



OOPS I had the script linking to my test script which I deleted. Recopy the code and try it again.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
gd3
post Sep 14 2007, 04:28 PM
Post #7


Veteran
***

Group: Members
Posts: 178
Joined: 3-September 04
Member No.: 1408



OK great...it's working now...

Is there anyway to eliminate the point spreads???

gd3
Go to the top of the page
 
+Quote Post
habman
post Sep 14 2007, 04:57 PM
Post #8


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


QUOTE (gd3 @ Sep 14 2007, 06:28 PM) *
OK great...it's working now...

Is there anyway to eliminate the point spreads???

gd3



Done. Recopy the code and then set hideFantasyScheduleSpread = true;

You may have to do a CTRL-F5 as well.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
gd3
post Sep 14 2007, 05:30 PM
Post #9


Veteran
***

Group: Members
Posts: 178
Joined: 3-September 04
Member No.: 1408



wow, that was quick! Thanks!

gd3
Go to the top of the page
 
+Quote Post
jdubbs23
post Sep 15 2007, 08:11 AM
Post #10


Veteran
***

Group: Members
Posts: 38
Joined: 12-June 07
Member No.: 5229



Habman, thanks for the update it looks great. It seems like it is default set to be pretty wide, how could I set it to be narrower? I want it on the right side of my homepage which is like 30% but I don't see any CSS qualifiers to modify the width and when I have it inserted on the side that is 30% it stretches everything out to like 50%. Any ideas?
Go to the top of the page
 
+Quote Post
braven112
post Sep 15 2007, 03:04 PM
Post #11


Veteran
***

Group: Members
Posts: 1102
Joined: 18-April 04
From: mfladdons.com
Member No.: 326



Can you add the ability to hide the caption like you do in the scoreboard code?

Thanks!!


--------------------
MFLaddons.com, your home for MFL templates and graphics. Check out our Featured Templates for only $39.99 through the month of June.
Go to the top of the page
 
+Quote Post
habman
post Sep 15 2007, 03:07 PM
Post #12


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


I will take care of these requests later tonight. I have a wedding reception to get to right now. I'll let you know when it's done.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
jdubbs23
post Sep 15 2007, 03:12 PM
Post #13


Veteran
***

Group: Members
Posts: 38
Joined: 12-June 07
Member No.: 5229



QUOTE (habman @ Sep 15 2007, 05:07 PM) *
I will take care of these requests later tonight. I have a wedding reception to get to right now. I'll let you know when it's done.


Nice man, have fun.
Go to the top of the page
 
+Quote Post
braven112
post Sep 15 2007, 03:22 PM
Post #14


Veteran
***

Group: Members
Posts: 1102
Joined: 18-April 04
From: mfladdons.com
Member No.: 326



QUOTE (habman @ Sep 15 2007, 02:07 PM) *
I will take care of these requests later tonight. I have a wedding reception to get to right now. I'll let you know when it's done.



Thanks!!

What do you think of this?? Currently the "preview" link takes you to the results page. Would it be possible to have this link take you to the live scoring page for each matchup? It makes sense for games that are completed but not for the games that are upcoming.

http://football12.myfantasyleague.com/2007...HISES=0012_0002


--------------------
MFLaddons.com, your home for MFL templates and graphics. Check out our Featured Templates for only $39.99 through the month of June.
Go to the top of the page
 
+Quote Post
habman
post Sep 16 2007, 09:11 AM
Post #15


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


QUOTE (braven112 @ Sep 15 2007, 05:04 PM) *
Can you add the ability to hide the caption like you do in the scoreboard code?

Thanks!!


It looks like you figured this out.

QUOTE (braven112 @ Sep 15 2007, 05:22 PM) *
QUOTE (habman @ Sep 15 2007, 02:07 PM) *

I will take care of these requests later tonight. I have a wedding reception to get to right now. I'll let you know when it's done.



Thanks!!

What do you think of this?? Currently the "preview" link takes you to the results page. Would it be possible to have this link take you to the live scoring page for each matchup? It makes sense for games that are completed but not for the games that are upcoming.

http://football12.myfantasyleague.com/2007...HISES=0012_0002

Done. You may have to do a CTRL-F5.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post

4 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 3rd September 2010 - 11:40 PM