function geturlparam(name) { var reg = new regexp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).match(reg); //匹配目标参数 if (r != null) return unescape(r[2]); return null; //返回参数值 } function gettopbanner() { $('.flexslider').flexslider({ animation: "slide" }); } function postajax(obj) { $.ajax({ type: 'post', url: obj.url, data: obj.data, cache: false, datatype: 'json', context: document.body, success: function (data) { obj.success(data); }, error: function (e) { obj.error(e); } }); } function subnewstring(oldstring, len) { return oldstring.length > len ? oldstring.substr(0, len) + "..." : oldstring; } function getbottom() { document.title = "无锡有限公司"; $(".register").find("a")[0].href = "index.html"; $(".register").find("a")[1].href = "news.html?channel_name=news&caid=59"; //$(".register").find("a")[1].href = "detail.aspx?id=103"; $(".register").find("a")[2].href = "zixun.html"; $(".register").find("a")[3].href = "contact.html"; }