What are the benefits of this:
- No iframes
- Less bandwidth usage for my site
- Quicker loading and uses less of MFL's resources
- Easier to implement for the end user
You can see it in action here: http://www8.myfantas...2008/home/15372
The first few lines of the code have variables that you can change but are not required to.
A little further down is a CSS section where you can add some customization if you want.
Just copy and paste the code into a home page module
Here is the code for those interested:
Last modified: September 9, 2011
Here is a brief tutorial on how to implement the images.
There are three ways to do this:
If you have icons already setup for your league then just set boxIconLeagueDefault to true
If you have logos already setup for your league the just set boxLogoLeagueDefault to true
If you have icons already made on a personal site from the old iframe ticker then set useOldIconMethod to true and update the iconURL and iconExt as you did for the iframe ticker.
If you wish to create icons for this ticker from scratch then here is how you would do that.
First create your icons but note that they must be of the same file type. ie gif or bmp or jpg
Next choose a base name for your icons ie. icon or image or franchise
Now assuming you chose the base name "icon" name your icons in the following manner: icon0001, icon0002 etc. for franchise #1, franchise #2 etc.
Upload your icons to a personal site for example mine are located at www.habman.com/images/
Now in the script you would set iconURL = 'http://www.habman.com/images/icon';
Lastly in the script you would set the icon extension iconExt = 'gif'; if they are in the gif format.
That is all.
If you have any questions or issues just ask.
Update November 10th:
Added ability to automatically set the days of the week for the Click to Start option.
var boxClickToStart = false;with
var boxClickToStart = new Array(false,false,true,true,true,true,true);In the above example the boxscore will display normally on Sunday & Monday and use the "Click to Start" for the other days.
Update September 9, 2011:
Many sites are now using "Fixed Width" which messes up the popups positioning. I have added a var "boxFixedWidthSite" which will compensate for fixed width sites.
Simply set the var to the width of your fixed width site ie
var boxFixedWidthSite = 980;
Just leave it set to zero or omit it altogether if your site is not fixed width.
Update September 10, 2011:
The vertical positioning of the popup gets calculated wrong on some sites so I have added the ability to manually set the vertical positioning.
It may take some trial and error on your part to get the positioning set correctly.
Example: To set the positioning at 200 pixels from the top here is the code
var boxVerticalOverride = 200;