Products and Tools
Syndicated Weather
Freshness Warning
This blog post is over 22 years old. It's possible that the information you read below isn't current and the links no longer work.
14 Jun 2002
It’s not an XML weather feed, but a someone sent a link to some JavaScript on Yahoo that returns the weather for any zip code. If you put this in your Web page:
<SCRIPT LANGUAGE="JavaScript" SRC="http://data.geo.yahoo.com/geo/v1?w=f,95670,10001&hbc=ffffff&hfc=314584
&hff=Verdana&hfs=2&ibc=FFFFFF
&ifc=0000ff&iff=Verdana&ifs=1&
amp;udd=1&ufc=000000&uff=Verdana
&ufs=2&ct=us&tz=UV&
ts=996800400"></script>
What gets displayed is
Just change the 95670,10001 to any zip codes you want. By playing with the JavaScript URL, we’ve also found some other options that can be set.
hbc: Header Background Color
hfc: Header Font Color
hfs: Header Font Size
hff: Header Font Face
ibc: body Background Color (what does I stand for?)
ifc: body Font Color
ifs: body Font Size
iff: body Font Face
It is unknown what the rest of the variables mean. Changing things from udd and beyond had no obvious affect.
While we’d love to give credit where credit’s due, the contributor neglected to sign their email.