I've been up to no good again.
These scripts display the NWS Climate Prediction Center's Near-Term (1 week to 3 month) and Long-Term (1 month to 13 month) temperature and precipitation outlook maps. You can see them
here, starting with Long-Term. The scripts each contain links to the other.
There are two settings. The first is $divWidth, the width of the <div> where the maps are displayed. It's currently set at 656px which works for a Saratoga template page with style="border:inset", the default for these scripts. The second setting switches onmouseover and onclick map display behavior. To use 'onmouseover' behavior set $mouseOver=true, and to use 'onclick' behavior set $mouseOver=false.
The long term outlook maps are updated at about 8:30 AM on the third Thursday of the month. The code to update the month arrays to begin with the next month is set to occur at 8:30 AM on the third Thursday each month, which could be anywhere from the 15th to the 20th. The script rotated correctly to the current map dates at 8;30 this morning, so I believe the code works as intended. Please let me know via the forum if you encounter errors in the month array display algorithms.
Edit: A stray, unused 'onClick' thwarted validation in wxcpcoutlook.php. This has been corrected in the present zip.
Edit 29 June 2013: There was a problem with the scripts interfering with the ajaxgizmo's function. This has been fixed in wxcpcoutlook2.zip
Edit 30 June 2013: Google Analytics users will find that the switch '$mouseOver' doesn't work. The wxcpcoutlook3.zip files use a work-around that hard-codes the 'mouseover' or 'onclick' functionality. If you need them, the additional files are labeled '...-ga-mo' for 'mouseover' and '...-ga-oc' for 'onclick'.
Edit 30 June 2013a: Version 3a corrects the internal links for the ...-ga-... files that pointed back to the original files pair rather than the new ones. It also hopefully kills the last of the missing 'px' entries.
Edit 14 July 2013: Version 3b removes ill-advised ' c;' spaces from the scripts. These prevented menu line-breaks from occuring at logical places.
Edit2 14 July 2013: Version 4 revises the logic that determines when to switch the maps to NWS creation during the current month rather than the previous month. This version replaces all prior versions due to the flawed date-switching logic in those scripts that switched months prematurely during the third week on Sun-Wed. Please discard the previous versions and use this one.
Edit3 14 July 2013: Version 5 corrects problems with boundary conditions around a new year where the long-term outlook scripts would have failed. I would again strongly suggest that you replace any older version(s) with version 5.
Edit 15 July 2013: Version 5a adds an option, $allWhiteBox, to the near-term scripts to use all white 'white_box.png' backgrounds rather than switching to shades of gray for the black and silver themes. Switching to shades of gray may be overkill and is beset by browser cache issues if viewers switch themes back and forth. Just set $allWhiteBox = true to use all white box
backgrounds. The white box was originally created to maintain the same aspect ratio of the US when switching maps. Without it the vertical compression/expansion of the US during switching is very distracting.
Edit 18 July 2013: Version 5b further revises the logic that determines when to switch maps by relying on a day-of-month of the third Thursday of the month calculation rather than day of week calculations. While the prior algorithm worked this month, it would fall over some months. The new algorithm should solve this problem.
Edit2 18 July 2013: I inadvertently deleted a variable from Version 5b. Version 5c restores it and has been verified to change maps at 7:30am US/Eastern on the third Thursday (this month anyway). Please remove all prior versions and use this one for the wxcpcltoutlook scripts. The wxcpcoutlook scripts are unchanged from 7/14/2013.
Edit 21 Feb 2014: The script displayed erroneous dates in some of the links this month. There were also problems in Nov and Dec that I uncovered while debugging the script. All of the charts displayed correctly, but the links didn't match the chart dates at times. Version 6 hopefully fixes those problems. I've also updated the fixed mouseover and fixed onclick scripts for Google Analytics compatibility.
Edit 23 June 2015: The NWS CPC has moved the long-term outlook from experimental to production. The old Version 6 no longer displays updated maps and has been removed. Version 7 displays the 'Official' production CPC long-term outlook charts.
Edit2 23 June 2015: I had completely forgotten what the alternate versions were all about in my haste to publish the click-mouseover configurable version that I use. They indeed needed modification before they could function properly again. Version 7a supplants Version 7 and contains updated Google Analytics compatible onclick-onmouseover scripts.
Edit 18 Jan 2020: Zip removed from this thread. It's now available as 'wxcpcoutlook.zip' on
my scripts page. See my new post in this thread as to why the script needed modification.