Traditional Culture Encyclopedia - Weather forecast - How to make a weather calendar?
How to make a weather calendar?
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.
- Related articles
- How to make ribbon menu with Excel
- How to set the OPPO mobile phone weather plug-in?
- Is a person's temperament cultivated or born?
- An ideal example
- The second beam of light - the wise and humorous teacher He Jie
- The latest and best viewing period of 2022 Jinta Populus euphratica forest
- Autumnal Equinox Creative Poster-Copywriting Content of Autumnal Equinox Poster (106 sentence)
- What good things do you recommend in university dormitories?
- The main characters in Water Margin
- When the weather turns cold, it is necessary to prevent lung infection and keep warm.