mibew/src/messenger/webim/js/162/ie.js
Evgeny Gryaznov 6bd70e088f fix ie6 layout
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@623 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-11 11:08:18 +00:00

11 lines
421 B
JavaScript

window.attachEvent('onload', mkwidth);
window.attachEvent('onresize', mkwidth);
function mkwidth(){
if(document.getElementById("wrap700")) {
document.getElementById("wrap700").style.width = document.documentElement.clientWidth < 750 ? "750px" : "100%";
}
if(document.getElementById("wrap400")) {
document.getElementById("wrap400").style.width = document.documentElement.clientWidth < 450 ? "450px" : "100%";
}
};