PDA

View Full Version : Resolved weather script



james438
12-15-2012, 07:02 PM
I am thinking of adding a weather script to my site that forecasts the next 5 days or so. Has anyone tried this or know of any good ones out there?

ajfmrf
12-15-2012, 07:39 PM
Most of the websites like weather.com,wunderground.com,accuweather.com all have widgets you ca add to a website.In most cases you have to register with them and in some cases provide your website where the code will be placed.here are a few of my tests to see what some look like:
http://www.web-user.info/tools/weather/weather/channel2.html
http://www.web-user.info/tools/weather/usa/1.html
http://www.web-user.info/tools/weather/acc/acu1.html
http://www.web-user.info/tools/weather/wundergound.html
http://www.web-user.info/tools/weather/testing.html
http://www.web-user.info/tools/weather/1.html

As you can see there are a few options available

molendijk
12-15-2012, 08:15 PM
Or you just statically include an existing forecasting site in your page, like this:

<div style="position: fixed; left:10px;top: 10px; right: 10px; height:300px">
<div style="position: relative; text-align: center">The weather brought to you by <i>http://www.weather.com/weather/today/USNY0996</i></div>
<iframe src="http://www.weather.com/weather/today/USNY0996" style="position: absolute; width: 100%; height: 100%"></iframe>
</div>
<div style="position: relative; top: 350px; pdding:20px; font-size: verdana">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
</div>
Or dynamically, using a link:

<div id="weather"></div>
<a href="javascript: void(0)" onclick="document.getElementById('weather').innerHTML='<div style=\'position: absolute; left: 50px; top: 50px; right: 50px; bottom: 80px; border:1px solid black\'><div style=\'position: relative; float: right; cursor: pointer\' onclick=\'document.getElementById(&quot;weather&quot;).innerHTML=&quot;&quot;\'>CLOSE<\/div><br><iframe src=\'http://www.weather.com/weather/today/USNY0996\' style=\'position: absolute; width: 100%; height: 100%\' frameborder=\'0\'><\/iframe><\/div>'">The weather brought to you by <i>http://www.weather.com</i></a>

bernie1227
12-16-2012, 02:02 AM
Basically anything in here:
http://www.jqueryrain.com/2012/07/best-jquery-weather-widget-plugin-example/

james438
12-16-2012, 05:05 AM
Thank you for all of the great information here. After looking through everything I decided to go with the plugin (http://netweather.accuweather.com/adcbin/netweather_v2/signup-page1.asp) from accuweather.com which is very customizable and what I am looking for. I have added it to my admin page for easy reference.