var system = { win: false, mac: false, xll: false, ipad:false }; var p = navigator.platform; system.win = p.indexOf("Win") == 0; system.mac = p.indexOf("Mac") == 0; system.x11 = (p == "X11") || (p.indexOf("Linux") == 0); system.ipad = (navigator.userAgent.match(/iPad/i) != null)?true:false; if (system.win || system.mac || system.xll) { } else { $(function() { $("#mobile_nav .menu").click(function () { if ($("#mobile_nav .menu ul").css("display") == "none") { $("#mobile_nav .menu ul").css("display", "block"); } else { $("#mobile_nav .menu ul").css("display", "none"); } }); }); } function showMobilePic(img) { document.write(''); } function showspotsPic(img) { var arr = img.replace(".jpg","_m.jpg"); document.write(''); } function showMobileCode() { } var page = 1; function showNewsPage(id) { var data = "page="+(page+1)+"&id="+id; var obj = function(msg) { var result = eval(msg); if (result.result) { var list = result.list; var strTemp = ""; for (var i=0; i"+unescape(list[i].title)+""; strTemp += "

"+unescape(list[i].intro)+"

"; strTemp += "
"; } //var old = $("#cMoreList").html(); //$("#cMoreList").html(old+strTemp); $("#cMoreList").append(strTemp); strTemp = null; page = page + 1; } } doPost("catchNewsPage",data,obj); } function showProductPage(id) { var data = "page="+(page+1)+"&id="+id; var obj = function(msg) { var result = eval(msg); if (result.result) { var list = result.list; var strTemp = ""; for (var i=0; i
"; strTemp += ""; strTemp += ""; strTemp += "
"+unescape(list[i].title)+"
"; } //var old = $("#cMoreList").html(); //$("#cMoreList").html(old+strTemp); $("#cMoreList").append(strTemp); strTemp = null; page = page + 1; } } doPost("catchProductPage",data,obj); } function showSearchPage(id) { var data = "page="+(page+1)+"&keyword="+id; var obj = function(msg) { var result = eval(msg); if (result.result) { var list = result.list; var strTemp = ""; for (var i=0; i"; strTemp += "
"; strTemp += ""; strTemp += "
"+unescape(list[i].title)+"
"; } //var old = $("#cMoreList").html(); //$("#cMoreList").html(old+strTemp); $("#cMoreList").append(strTemp); strTemp = null; page = page + 1; } } doPost("catchSearchPage",data,obj); } function showHonorPage(id) { var data = "page="+(page+1)+"&id="+id; var obj = function(msg) { var result = eval(msg); if (result.result) { var list = result.list; var strTemp = ""; for (var i=0; i
"; strTemp += ""; strTemp += ""; strTemp += "
"+unescape(list[i].title)+"
"; } //var old = $("#cMoreList").html(); //$("#cMoreList").html(old+strTemp); $("#cMoreList").append(strTemp); strTemp = null; page = page + 1; } } doPost("catchHonorPage",data,obj); } function doPost(Action,data,obj) { $.ajax({ dataType:"json", type:"POST", data:"", url:"../inc/ajax.php?Action="+Action+"&"+data+"&Time=" + (new Date().getTime()), error: function() { alert("服务器出现异常,请联系管理员!"); }, success: obj }); }