| | |
| | | |
| | | function autoResize() { |
| | | var div_obj = document.getElementById("div_middle"); |
| | | // 宽度èªéåº |
| | | //宽度èªéåº |
| | | var fullWidth = document.body.offsetWidth; |
| | | var div_loginBox = document.getElementById("div_loginBox"); |
| | | var boxWidth = div_loginBox.offsetWidth; |
| | |
| | | //if (fullWidth > 1920) { fullWidth = 1920; } |
| | | |
| | | var winWidht = window.innerWidth; |
| | | var winHeight = window.innerHeight + 50; |
| | | var winHeight = window.innerHeight - 100; |
| | | var bgHeight = 1080; |
| | | winWidht += 150; |
| | | if (winWidht >= 1920) { |
| | | $("#div_middle").css("background", "url(../images/NewGJXJlogin/1920/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "800px"); |
| | | $("#div_middle").css("height", "980px"); |
| | |
| | | $(".loginvalifield").css("margin-top", "20px").css("width", "350px").css("height", "45px"); |
| | | $("#inputCode").css("margin-left", "46px"); |
| | | $(".logintable").css("margin-top", "113px").css("width", "350px").css("height", "470px"); |
| | | //$(".logintable").css("margin-top", "210px").css("width", "350px").css("height", "470px"); |
| | | $("#carLink div").css("background", "url(../images/NewGJXJlogin/1600/add.png) no-repeat").css("background-position", "3% 40%"); |
| | | $("#carLink a").css("margin-left", "50px").css("font-size", "16px"); |
| | | $(".loginbtn").css("margin-top", "25px"); |
| | | leftoffset = 404; |
| | | bgHeight = 800; |
| | | bgHeight = 800; //900 |
| | | div_loginBox.style.left = ((fullWidth - 360) / 2 + leftoffset) + "px"; |
| | | } else if (winWidht >= 1440) { |
| | | $("#div_middle").css("background", "url(../images/NewGJXJlogin/1440/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "810px"); |
| | |
| | | $(".loginvalicode input").css("width", "165px").css("margin-left", "46px").css("font-size", "14px"); |
| | | $(".loginvalifield").css("margin-top", "20px").css("width", "300px").css("height", "40px"); |
| | | $(".logintable").css("margin-top", "83px").css("width", "300px").css("height", "390px"); |
| | | //$(".logintable").css("margin-top", "135px").css("width", "300px").css("height", "390px"); |
| | | $("#carLink div").css("background", "url(../images/NewGJXJlogin/1366/add.png) no-repeat").css("background-position", "3.5% 50%").css("margin-top", "25px").css("height", "30px").css("line-height", "30px"); |
| | | $("#carLink a").css("margin-left", "50px").css("font-size", "14px"); |
| | | $(".loginbtn").css("margin-top", "10px").css("height", "56px"); |
| | | leftoffset = 338; |
| | | bgHeight = 668; |
| | | bgHeight = 668; //731 |
| | | div_loginBox.style.left = ((fullWidth - 300) / 2 + leftoffset) + "px"; |
| | | } else { |
| | | //fullWidth = 1280; |
| | | $("#div_middle").css("background", "url(../images/NewGJXJlogin/1280/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "620px"); |
| | | $("#loginBox_Title").css("height", "50px").css("line-height", "50px"); |
| | | $("#loginBox_Title span").css("font-size", "32px"); |
| | |
| | | $("body").css("overflow", "hidden"); |
| | | } |
| | | div_obj.style.width = fullWidth + "px"; |
| | | |
| | | if (winHeight > bgHeight) { |
| | | div_obj.style.height = winHeight + "px"; |
| | | var marginTop = parseFloat($(".logintable").css("margin-top").replace("px")) + (winHeight - bgHeight); |
| | | $(".logintable").css("margin-top", marginTop + "px"); |
| | | } |
| | | |
| | | // é«åº¦èªéåº |
| | | //é«åº¦èªéåº |
| | | var fullHeight = document.body.offsetHeight; |
| | | var myHeight = div_obj.offsetHeight; |
| | | if (fullHeight > myHeight) { |