Yahoo Fantasy Game Log Tooltip

By Tim Wilson Last update Sep 10, 2009 — Installed 1,699 times.

Good script

in
Subscribe to Good script 5 posts, 4 voices



castaban Scriptwright

This is a very useful script. However it is hard to read as there is so much info and it is not quite aligned, can that be improved Tim?

 
Tim Wilson Script's Author

Thanks castaban for that idea. At first I didn't think that it was possible, but now I'll take a second look at it to see. My JavaScript skills have grown over the last year or so, maybe I can at least spread it out a bit.

 
Glenn Carr Scriptwright
FirefoxWindows

Tim, I had the same problem and I changed this style:

'.gameloginfo div.inner table td { font-size: 11px; border-bottom: 1px solid #666666 }' +

to this...

'.gameloginfo div.inner table td { font-size: 11px; border-bottom: 1px solid #666; padding-right: 5px; text-align: right; }' +

It adds some spacing between the columns, and right-aligns the values in the columns.

 
Tim Harding Scriptwright
FirefoxWindows

Tim,

Love the script. Another tweak I made was the placement of the box. Changed this line:

yud.setXY(gameLogTooltip, [yud.getX(gameLogLink),
yud.getY(gameLogLink) + gameLogLink.offsetHeight + 18]);

to this:

yud.setXY(gameLogTooltip, [yud.getX(gameLogLink)+20,
yud.getY(gameLogLink) + gameLogLink.offsetHeight - 180]);

This centers the box with the name of the player instead of putting it underneath. The problem I was having was that as we get deeper into the season, I often can't see the later weeks on the schedule and sometimes the window itself doesn't reach far enough down so you can't even scroll down to see the whole schedule. Try it out and see what you think.

 
Tim Wilson Script's Author
ChromeWindows

Thanks Tim H for that tip! I'll check it out.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel