From ca676781d8229d84cd15bf3b2702aae4b3858a59 Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 27 Jun 2007 08:04:42 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@1795 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- layouts/zb5_site/js/layout.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 layouts/zb5_site/js/layout.js diff --git a/layouts/zb5_site/js/layout.js b/layouts/zb5_site/js/layout.js new file mode 100644 index 000000000..6e1ce9176 --- /dev/null +++ b/layouts/zb5_site/js/layout.js @@ -0,0 +1,22 @@ +function fnStartInit() { + var obj = xGetElementById('loading'); + obj.style.visibility = 'hidden'; +} +xAddEventListener(window,'load',fnStartInit); + + +// footer를 화면 크기에 맞춰 설정 +xAddEventListener(window, 'load', fixLayoutFooter); +xAddEventListener(window, 'resize', fixLayoutFooter); +function fixLayoutFooter() { + var headerHeight = 145; + var bodyHeight = xHeight(xGetElementById('content_body')); + var footerHeight = 55; + var clientHeight = xClientHeight(); + var newHeight = clientHeight - footerHeight - headerHeight; + if(typeof(editor_height)!='undefined') newHeight += editor_height; + + if(newHeight