//BAIDU 统计 //var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); //document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fe3471e600812ea8757f33926df064f6d' type='text/javascript'%3E%3C/script%3E")); //ENDER var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1254062328'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s4.cnzz.com/z_stat.php%3Fid%3D1254062328%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E")); //DIV - 动态高度 -- function getHeight() { // alert("Mleft_"+document.getElementById("Mleft").offsetHeight + "px"); var MrightH=document.getElementById("Mright").offsetHeight; var MleftH=document.getElementById("Mleft").offsetHeight; // alert("MrightH_"+MrightH+ "px"); if (MrightH < MleftH){document.getElementById("Mright").style.height=MleftH + "px"; }; // window.document.getElementById("more").innerHTML= MleftH; } window.onload = function() { getHeight(); } //固定DIV ---------------------------- var topa = document.getElementById("Business").offsetTop-60 topa=99999999999999; var TOPMENU = document.getElementById("TOPMENU").offsetTop var busHight=document.getElementById("Business").offsetHeight var fixed_div = {}; fixed_div.convScrollAD = function() { this._id = "Business"; //浮动对象ID名称 this._top = 0; //距离上边框距离 this._scrollTop = (document.documentElement.scrollTop || document.body.scrollTop) + this._top; $(this._id).stop(); //alert(this._scrollTop); if (this._scrollTop < TOPMENU) { document.getElementById("TOPMENU").className = ""; document.getElementById('lang').style.display = "none"; }else{ document.getElementById("TOPMENU").className = "TOPMENU"; document.getElementById('lang').style.display = ""; } if (this._scrollTop < topa) { document.getElementById(this._id).className = ""; //$(this._id).removeClass("Business"); } else { document.getElementById(this._id).className = "Business"; // $(this._id).addClass("fixed_box"); }; }; //初始化 $(function() { fixed_div.convScrollAD(); window.onscroll = function() { fixed_div.convScrollAD(); }; }); //结束 -----------------------