document.write('
'); function hiddencart(){ document.getElementById("Layer1").style.display="none"; } function showcart(){ document.getElementById("Layer1").style.display=""; } function cartdelproduct(id){ var hiddenli = document.getElementById('minicart_' + id); hiddenli.style.display = 'none'; var newurl = '[$syspath]cart.aspx?act=del&cartid=' + id + '&d=' + escape(Date()); //Ajax请求 $.get(newurl,showCartInfo); } function cartdelproductbind(id){ var hiddenli = document.getElementById('minicartbind_' + id); hiddenli.style.display = 'none'; var newurl = '[$syspath]cart.aspx?act=del&bindingid=' + id + '&d=' + escape(Date()); //Ajax请求 $.get(newurl,showCartInfo); } function showCartInfo(){ var newurl = '[$syspath]js_floatcarttext.aspx?d=' + escape(Date()); //Ajax请求 $("#Layer1").load(newurl,InitCartCount); } function InitCartCount(){ $('#topcarttotal')[0].innerHTML = $('#minicarttotal')[0].innerHTML; } showCartInfo();