function selectshow(cid){ nbasc.style.display="none"; nbabf.style.display="none"; cid.style.display="block"; } $(function() { $("img").lazyload({ placeholder : "/images/loading.png", effect: "fadeIn" }); }); function loadXMLDoc()//ajax发送请求并显示 { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var kankan=xmlhttp.responseText; strs=kankan.split("|"); document.getElementById("B0").innerHTML=strs[0]; document.getElementById("B1").innerHTML=strs[1]; document.getElementById("B2").innerHTML=strs[2]; document.getElementById("B3").innerHTML=strs[3]; document.getElementById("B4").innerHTML=strs[4]; document.getElementById("B5").innerHTML=strs[5]; } } xmlhttp.open("GET","/data.json?t=1714778266",true); xmlhttp.send(); }