Free Temperature Widget
This is how your AB0MY-2 Boulder, Colorado temperature widget will look on your site. The PHP code to
add it is shown below the widget. Enjoy!
|
Current Temp
59.0° F
|
 |
|
|
|
|
|
There are many more Colorado weather stations to choose from.
Place this PHP code on the top of your page.(before anything is written to the browser)
<?php if($_GET["setwxStation"]){ Header("Set-Cookie:wxStation={$_GET["setwxStation"]};expires=Friday, 16-Jan-2037 00:00:00 GMT;\n\n"); $wxStation = $_GET["setwxStation"]; } else { if($_COOKIE["wxStation"]){ $wxStation = $_COOKIE["wxStation"]; } else { // Show a default weather station to this user $wxStation = "
AP115
"; } } ?>
|
Place this PHP code where you want your widget to display.
<?php $wxStation = trim($wxStation); include("http://www.myfsbo.com/weather.php?forcewxStation=$wxStation"); ?>
|
|
|
Alabama (1)
Alaska (0)
Arizona (0)
Arkansas (0)
California (0)
Colorado (1)
Connecticut (0)
Delaware (0)
Florida (5)
Georgia (0)
Hawaii (0)
Idaho (0)
Illinois (1)
Indiana (0)
Iowa (0)
Kansas (0)
Kentucky (1)
Louisiana (0)
Maine (0)
Maryland (2)
Massachusetts (1)
Michigan (1)
Minnesota (2)
Mississippi (0)
Missouri (2)
Montana (1)
Nebraska (0)
Nevada (0)
New Hampshire (0)
New Jersey (0)
New Mexico (1)
New York (0)
North Carolina (0)
North Dakota (1)
Ohio (3)
Oklahoma (1)
Oregon (0)
Pennsylvania (0)
Puerto Rico (0)
Rhode Island (0)
South Carolina (0)
South Dakota (0)
Tennessee (1)
Texas (1)
Utah (0)
Vermont (0)
Virginia (2)
Wash. D.C. (0)
Washington (0)
West Virginia (0)
Wisconsin (1)
Wyoming (0)
|