function GetUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) { //return unescape(r[2]); return decodeURIComponent(r[2]); } return null; } $(function(){ initUpdateTable(); initMenu(); initQQ(); }); function initUpdateTable(){ // update-table绫诲悕鐨勮〃鏍硷紝鑷姩璁$畻鏇存柊鏃堕棿 var fileUrl = '//www.tdx.com.cn/products/getfileinfo_sysj.asp?fpath='; $('.update-table tr').each(function(){ var downfile=''; $(this).find('a').each(function(){ if(/\.(zip|rar)$/i.test(this.href)){ if(this.href.indexOf('/products')!=-1){ downfile='.'+this.href.split('/products')[1]; } } }); $(this).find('td').each(function(){ var text=$.trim(this.innerHTML); if(text=='鏇存柊鏃ユ湡锛?){ $(this).append(''); var url = fileUrl+downfile+'&t=' + new Date().getTime(); $(this).find('.load-update-time').load(url); } }); }); } function initMenu(){ /* 鑿滃崟鍒濆鍖 */ $('#menu>ul>li>ul').find('li:has(ul:not(:empty))>a').append(">"); // 涓烘湁瀛愯彍鍗曠殑鑿滃崟椤规坊鍔?>'绗﹀彿 $("#menu>ul>li").bind('mouseover',function() { // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲叆鎿嶄綔 $(this).children('ul').slideDown('fast'); }).bind('mouseleave',function() { // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲嚭鎿嶄綔 $(this).children('ul').slideUp('fast'); }); $('#menu>ul>li>ul li').bind('mouseover',function() { // 瀛愯彍鍗曠殑榧犳爣绉诲叆鎿嶄綔 $(this).children('ul').slideDown('fast'); }).bind('mouseleave',function() { // 瀛愯彍鍗曠殑榧犳爣绉诲嚭鎿嶄綔 $(this).children('ul').slideUp('fast'); }); } //鏄剧ずQQ瀹㈡湇 function initQQ() { var _qq = ""; var imgUrl = "//www.tdx.com.cn/images/qqkf"; _qq += '