window.location.href="http://tp2017.ddc.net.cn/pengche/hxdetail.aspx?id=18"; //弹出隐藏层 function ShowDiv(show_div,bg_div){ document.getElementById(show_div).style.display='block'; document.getElementById(bg_div).style.display='block' ; var bgdiv = document.getElementById(bg_div); bgdiv.style.width = document.body.scrollWidth; $("#"+bg_div).height($(document).height()); // bgdiv.style.height = $(document).height(); } //关闭弹出层 function CloseDiv(show_div,bg_div) { document.getElementById(show_div).style.display='none'; document.getElementById(bg_div).style.display='none'; }; var testTxt = " 18";