git-svn-id: http://xe-core.googlecode.com/svn/trunk@1756 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-25 06:23:40 +00:00
parent dd18ad335f
commit f4626edf09
72 changed files with 1049 additions and 795 deletions

View file

@ -10,3 +10,16 @@ function doDeleteShortCut(selected_module) {
fo_obj.selected_module.value = selected_module;
procFilter(fo_obj, delete_shortcut);
}
// footer를 화면 크기에 맞춰 설정
xAddEventListener(window, 'load', fixAdminLayoutFooter);
xAddEventListener(window, 'resize', fixAdminLayoutFooter);
function fixAdminLayoutFooter() {
var headerHeight = xHeight(xGetElementById('header'));
var bodyHeight = xHeight(xGetElementById('cBody'));
var footerHeight = xHeight(xGetElementById('footer'));
var clientHeight = xClientHeight();
var newHeight = clientHeight - footerHeight - headerHeight + 71 + 38;
if(newHeight<bodyHeight) newHeight = bodyHeight;
xHeight(xGetElementById('cBody'), newHeight);
}

View file

@ -0,0 +1,64 @@
<public:component>
<public:attach event="onpropertychange" onevent="doFix()" />
<script type="text/javascript">
// IE5.5+ PNG Alpha Fix v1.0RC4
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com
// This is licensed under the CC-GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
// This must be a path to a blank image. That's all the configuration you need.
if (typeof blankImg == 'undefined') var blankImg = '../img/blank.gif'; // 1x1px 짜리 투명 이미지(blank.gif)의 경로를 변경.
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
function filt(s, m)
{
if (filters[f])
{
filters[f].enabled = s ? true : false;
if (s) with (filters[f]) { src = s; sizingMethod = m }
}
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
}
function doFix()
{
// Assume IE7 is OK.
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
(event && !/(background|src)/.test(event.propertyName))) return;
var bgImg = currentStyle.backgroundImage || style.backgroundImage;
if (tagName == 'IMG')
{
if ((/\.png$/i).test(src))
{
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
style.width = offsetWidth + 'px';
filt(src, 'scale');
// 'scale' 을 'image' 으로 변경하면 padding 적용시 나타나는 이미지 크기의 변화(잘못된 렌더링)를 방지할 수 있다. 하지만 border 표현에 문제가 생긴다.
src = blankImg;
}
else if (src.indexOf(blankImg) < 0) filt();
}
else if (bgImg && bgImg != 'none')
{
if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
{
var s = RegExp.$1;
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
style.width = offsetWidth + 'px';
style.backgroundImage = 'none';
filt(s, 'crop');
// IE link fix.
for (var n = 0; n < childNodes.length; n++)
if (childNodes[n].style) childNodes[n].style.position = 'relative';
}
else filt();
}
}
doFix();
</script>
</public:component>