TinyPortal

Development => Block Codes => Topic started by: RoarinRow on August 24, 2006, 08:24:25 PM

Title: The Weather Channel Block
Post by: RoarinRow on August 24, 2006, 08:24:25 PM
I just changed my Weather block code, which I got from the snippets section to this new one from The Weather Channel.

In a Javascript/html block just enter this code:

Code: [Select]
<center><table cellpadding="0" cellspacing="0">
<tr>
    <td align="center" width="120">
        <a href="http://www.weather.com?par=internal&code=1025899396&site=logo&promo=english"><img border="0" src="http://image.weather.com/pics/oap/slogo.gif"></a>
    </td>
</tr>
<tr>
    <td align="center" width="120">
        <form target="_blank" method="post" action="http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=internal&code=1025899396&site=logo&promo=english">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td valign="center" width="120" colspan="2">
                    <font face="Arial, Helvetica, Chicago, Sans Serif" color="#004371" size="2">  Enter city or US Zip </font>
                </td>
            </tr>
            <tr>
                <td width="40" align="left" valign="bottom">
                    <input name="destination" type="text" size="8" value="">
                </td>
                <td width="20" align="left" valign="bottom">
                    <input type="image" src="http://image.weather.com/pics/button_go.gif" width="26" height="23" border="0" alt="go!" value="Go City">
                </td>
            </tr>
        </table>
        </form>
    </td>
</tr>
</table></center>

I registered on their site to get the code, they have other versions - http://www.weather.com/services/oap.html?from=servicesindex


Title: Re: The Weather Channel Block
Post by: bsmity on March 16, 2007, 09:10:32 AM
scriptbox block works for me