Traditional Culture Encyclopedia - Weather forecast - How to make a weather calendar?

How to make a weather calendar?

The weather calendar is as follows:

By writing C language, the real-time display and real-time positioning of time and weather are realized.

I used QQ browser, Google browser and Firefox browser to open the verification, and found that only QQ browser can display the sun icon, and the location can go to Baoding. The other two browsers do not display icons, and the location is only Hebei.

& ltbody & gt

SetInterval, real-time display time->

& ltspan id="time">。 & lt/span>。

& lt/body & gt;

& lt script & gt

Function mytime(){

var a = new Date();

var b = a . tolocaleTimestring();

var C = a . tolocaledatestring();

Documents. getElementById("time ")。 innerHTML = c+" & amp; nbsp "+b;

getInterval(function(){ my time()}, 1000);

& lt/sciAt & gt;

In addition, it can also be compiled in java.