Hi all...
I want to put a forecast inside my website, I dont know the script for that, please help me to solve this problem yaa....
tq
7 5729
Welcome to TSDN!
Usually, most respectable weather forecast websites will offer scripts that you can use on your website.
I’m looking for someone capable to make a script for weather forecast cities (Italy) for a new weather site web
I buy script language, then I will supply in the output and the final parameters.
Have you got some solution for this problem?
Best regards
Francesco Nucera
Welcome to TSDN!
If this is a job offer, post it in the Jobs forum. If you're attempting to do this yourself and need some help, then that's what this forum is for.
Hi ,
Please Send Some Weather Forcat WEbsites Scripts or any Code for
inbuilt in my website
Welcome to TSDN!
Usually, most respectable weather forecast websites will offer scripts that you can use on your website.
I’m looking for someone capable to make a script for weather forecast cities (INDIA) for a new weather site web
Welcome to TSDN!
Usually, most respectable weather forecast websites will offer scripts that you can use on your website.
Hi ,
Please Send Some Weather Forcat WEbsites Scripts or any Code for
inbuilt in my website
Find a weather forecast website which displays the weather forecast as you would like them. If they give you permission to display it on your website, they will probably have a ready-made script that you can include on your own website.
try this! -
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
<HTML>
-
<HEAD>
-
<TITLE>IP_Weather</TITLE>
-
<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"></script>
-
<SCRIPT type="text/javascript">
-
var weather={"onReady":false};
-
-
function IpWeather()
-
{
-
var xmlhttp=false;
-
/* Create a new XMLHttpRequest object to talk to the Web server */
-
-
/*@cc_on @*/
-
/*@if (@_jscript_version >= 5)
-
try
-
{
-
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
-
}
-
catch (e)
-
{
-
try
-
{
-
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
-
}
-
catch (e2)
-
{
-
xmlhttp = false;
-
}
-
}
-
@end @*/
-
if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
-
{
-
xmlhttp = new XMLHttpRequest();
-
}
-
-
xmlhttp.open('GET', 'http://www.google.com/ig/api?weather='+geoip_city(), true);
-
xmlhttp.send("");
-
-
xmlhttp.onreadystatechange = function()
-
{
-
if (xmlhttp.readyState == 4)
-
{
-
var weatherXML = xmlhttp.responseXML;
-
-
var now = weatherXML.getElementsByTagName("current_conditions")[0];
-
var now_t = now.getElementsByTagName('temp_c')[0].getAttribute('data');
-
var now_w = now.getElementsByTagName('wind_condition')[0].getAttribute('data');
-
var now_c = now.getElementsByTagName('condition')[0].getAttribute('data');
-
var now_h = now.getElementsByTagName('humidity')[0].getAttribute('data');
-
-
var today = weatherXML.getElementsByTagName("forecast_conditions")[0];
-
var t_max = today.getElementsByTagName('high')[0].getAttribute('data');
-
var t_min = today.getElementsByTagName('low')[0].getAttribute('data');
-
-
//put weather information in JSON,change onReady=True
-
weather={"t_now":now_t,"wind":now_w,"cloud":now_c,"humidity":now_h,"t_max":t_max,"t_min":t_min,"onReady":true};
-
}
-
}
-
}
-
-
IpWeather();
-
-
</SCRIPT>
-
</HEAD>
-
-
<BODY>
-
<div id='target'></div>
-
</BODY>
-
-
<script type="text/javascript">
-
function weatherInfo()
-
{
-
if(weather.onReady)
-
{
-
document.getElementById('target').innerHTML="Weather:"+weather.cloud+" Temperature now:"+weather.t_now+"℃ whole day between:"+weather.t_min+"--"+weather.t_max+"℃ "+weather.humidity+" "+weather.wind;
-
}
-
else
-
{
-
document.getElementById('target').innerHTML="loading....";
-
setTimeout("weatherInfo()",100);
-
}
-
}
-
weatherInfo();
-
</script>
-
</HTML>
-
-
Sign in to post your reply or Sign up for a free account.
Similar topics
by: futureofphp |
last post by:
Hi I am having a PHP based intranet home page. How can I add local
weather forecast for the day to it? Is there any free weather forevast
providers? I am interested in the local weather of Europe....
|
by: Selçuk Giray Özdamar |
last post by:
Hi,
I'm looking for a public web service about the weather forecast ,
(for all of the cities in the world), is there any web service?
Thanks...
|
by: VNN |
last post by:
I'm working on a project to get weather info for my company and would like
to know if there's any good weather web services site I can subscribe to?
Current temperature, 12-hour temperature...
|
by: pmclinn |
last post by:
I have the xml feed belowfrom this link:
http://www.weather.gov/alerts/ct.rss
I for the life of me can not get this data to format in a html table
using client side scripting. Any help would be...
|
by: StewartS |
last post by:
Hi there, I'm looking to display the Yahoo Weather feed on my website
(http://developer.yahoo.com/weather/). I am using Visual Web Developer
2005.
Everything works fine while parsing normal...
|
by: shaynenash |
last post by:
I wrote this script to calculate if water restrictions were in place if it was hotter than 25deg C. It has turned out to be a pretty good weather widget that can be used elsewhere. This was initially...
|
by: Craig M |
last post by:
Our current intranet site displays the weather with a 7 day forecast. We
have to manually enter all the weather info into a SQL DB using a web front
end, but would like to use an RSS feed.
All...
|
by: akumar8k |
last post by:
when i am excusing the below code i am getting the error.
Error 1
−
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
−
<SOAP-ENV:Body>
−
|
by: Wei Jia |
last post by:
1.Ajax.
2.http://j.maxmind.com/app/geoip.js for get client city.
3.Google weather API.
IE test is passed!But others browser can't,why?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |