weather.js

来自「学校网站asp原代码学校网站源码学校网页模板正式版,学校网站管理系统源码,学校模」· JavaScript 代码 · 共 27 行

JS
27
字号
function chkdiv(divid){
	var chkid=document.getElementById(divid);	
	if(chkid != null){return true; }
	else {return false; }
}

function page_to(theForm,city)
{
//if(city==""){city = 0574;}
document.getElementById('weather').innerHTML="<div class=dt_c>loading...</div>";
//document.getElementById('weather').innerHTML=theForm;
try {DataLoad.src = "http://pc.cnool.net/weather/show_weather_cnool_home.asp?city="+city+"&date_="+theForm+"&bg_border=CCCCCC&bg_color=FFFFFF&width=220&text_move=yes&time="+Date();
}
catch(e) {return false;}
return (false);
}

function page_to2(theForm2)
{
//if(city==""){city = 0574;}
document.getElementById('weather').innerHTML="<div class=dt_c>loading...</div>";
//document.getElementById('weather').innerHTML=theForm;
try {DataLoad.src = "http://pc.cnool.net/weather/show_weather_cnool_home.asp?city=&date_="+theForm2+"&bg_border=CCCCCC&bg_color=FFFFFF&width=220&text_move=yes&time="+Date();
}
catch(e) {return false;}
return (false);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?