mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
Issue 1213 fixed. Thanks to sannedul.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9986 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fd245d1bd2
commit
3e879b0177
10 changed files with 5 additions and 647 deletions
|
|
@ -1,79 +1 @@
|
|||
.colorpicker img, .colorpicker div {
|
||||
behavior: url(iepngfix.htc);
|
||||
}
|
||||
|
||||
|
||||
.xe_colorpicker {
|
||||
position:absolute;
|
||||
width:194px;
|
||||
height:183px;
|
||||
overflow:hidden;
|
||||
z-index:100;
|
||||
}
|
||||
|
||||
.xe_colorpicker .colorpicker {
|
||||
position:relative;
|
||||
width:192px;
|
||||
height:160px;
|
||||
background-color:white;
|
||||
border:1px solid silver;
|
||||
}
|
||||
|
||||
.xe_colorpicker .colortable {
|
||||
position:absolute;
|
||||
left : 4px;
|
||||
top : 4px;
|
||||
border:1px solid #909090;
|
||||
}
|
||||
|
||||
.xe_colorpicker .colortable .background {
|
||||
position:relative;
|
||||
width:150px;
|
||||
height:150px;
|
||||
background:url(../images/colorpicker_overlay.png) no-repeat;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.xe_colorpicker .colortable .indicator {
|
||||
position:absolute;
|
||||
width:11px;
|
||||
height:11px;
|
||||
background:url(../images/colorpicker_select.gif) no-repeat;
|
||||
}
|
||||
|
||||
.xe_colorpicker .huebar {
|
||||
position:absolute;
|
||||
right : 4px;
|
||||
top : 4px;
|
||||
border:1px solid #909090;
|
||||
}
|
||||
|
||||
.xe_colorpicker .huebar .background {
|
||||
width:20px;
|
||||
height:150px;
|
||||
background:url(../images/colorpicker_huebg.png) repeat-x;
|
||||
}
|
||||
|
||||
.xe_colorpicker .huebar .indicator {
|
||||
position:absolute;
|
||||
width:35px;
|
||||
height:9px;
|
||||
left:-3px;
|
||||
background:transparent url(../images/colorpicker_indic.gif) no-repeat;
|
||||
}
|
||||
|
||||
.xe_colorpicker .buttons {
|
||||
position:absolute;
|
||||
width:194px;
|
||||
background-color:black;
|
||||
}
|
||||
|
||||
.xe_colorpicker .buttons button {
|
||||
width:33%;
|
||||
color:white;
|
||||
height:22px;
|
||||
border:0;
|
||||
background-color:transparent;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
.xe_colorpicker{position:absolute;width:194px;height:183px;overflow:hidden;z-index:100}.xe_colorpicker .colorpicker{position:relative;width:192px;height:160px;background-color:white;border:1px solid silver}.xe_colorpicker .colortable{position:absolute;left :4px;top :4px;border:1px solid #909090}.xe_colorpicker .colortable .background{position:relative;width:150px;height:150px;background:url(../images/colorpicker_overlay.png) no-repeat;overflow:hidden}.xe_colorpicker .colortable .indicator{position:absolute;width:11px;height:11px;background:url(../images/colorpicker_select.gif) no-repeat}.xe_colorpicker .huebar{position:absolute;right :4px;top:4px;border:1px solid #909090}.xe_colorpicker .huebar .background{width:20px;height:150px;background:url(../images/colorpicker_huebg.png) repeat-x}.xe_colorpicker .huebar .indicator{position:absolute;width:35px;height:9px;left:-3px;background:transparent url(../images/colorpicker_indic.gif) no-repeat}.xe_colorpicker .buttons{position:absolute;width:194px;background-color:black}.xe_colorpicker .buttons button{width:33%;color:white;height:22px;border:0;background-color:transparent;padding:0;margin:0}
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
@charset "utf-8";
|
||||
/* NHN (developers@xpressengine.com) */
|
||||
body { margin:0;padding:0; font-size:.75em;}
|
||||
.iePngFix {behavior:url(../js/iePngFix.htc)}
|
||||
/* Default Skin - Start */
|
||||
#selectLang{margin:0;padding:0}
|
||||
#gnb{margin:0;padding:0}
|
||||
|
|
|
|||
|
|
@ -1,187 +0,0 @@
|
|||
<public:component>
|
||||
<script type="text/javascript">
|
||||
|
||||
// IE5.5+ PNG Alpha Fix v2.0 Alpha
|
||||
// (c) 2004-2008 Angus Turnbull http://www.twinhelix.com
|
||||
|
||||
// This is licensed under the GNU LGPL, version 2.1 or later.
|
||||
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
|
||||
|
||||
var IEPNGFix = window.IEPNGFix || {};
|
||||
IEPNGFix.data = IEPNGFix.data || {};
|
||||
|
||||
|
||||
// This must be a path to a blank image, relative to the HTML document(s).
|
||||
// In production use I suggest '/images/blank.gif' or similar. That's all!
|
||||
IEPNGFix.blankImg = 'layouts/xe_greystone/js/blank.gif';
|
||||
|
||||
|
||||
IEPNGFix.fix = function(elm, src, t) {
|
||||
// Applies an image 'src' to an element 'elm' using the DirectX filter.
|
||||
// If 'src' is null, filter is disabled.
|
||||
// Disables the 'hook' to prevent infinite recursion on setting BG/src.
|
||||
// 't' = type, where background tile = 0, background = 1, IMG SRC = 2.
|
||||
|
||||
var h = this.hook.enabled;
|
||||
this.hook.enabled = 0;
|
||||
|
||||
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
|
||||
src = (src || '').replace(/\(/g, '%28').replace(/\)/g, '%29');
|
||||
|
||||
if (
|
||||
src && !(/IMG|INPUT/.test(elm.nodeName) && (t != 2)) &&
|
||||
elm.currentStyle.width == 'auto' && elm.currentStyle.height == 'auto'
|
||||
) {
|
||||
elm.style.width = elm.offsetWidth + 'px';
|
||||
elm.style.height = elm.clientHeight + 'px';
|
||||
if (elm.currentStyle.display == 'inline') {
|
||||
elm.style.display = 'inline-block';
|
||||
}
|
||||
}
|
||||
|
||||
if (t == 1) {
|
||||
elm.style.backgroundImage = 'url("' + this.blankImg + '")';
|
||||
}
|
||||
if (t == 2) {
|
||||
elm.src = this.blankImg;
|
||||
}
|
||||
|
||||
if (elm.filters[f]) {
|
||||
elm.filters[f].enabled = src ? true : false;
|
||||
if (src) {
|
||||
elm.filters[f].src = src;
|
||||
}
|
||||
} else if (src) {
|
||||
elm.style.filter = 'progid:' + f + '(src="' + src +
|
||||
'",sizingMethod="' + (t == 2 ? 'scale' : 'crop') + '")';
|
||||
}
|
||||
|
||||
this.hook.enabled = h;
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.process = function(elm, init) {
|
||||
// Checks the onpropertychange event (on first 'init' run, a fake event)
|
||||
// and calls the filter-applying-functions.
|
||||
|
||||
if (
|
||||
!/MSIE (5\.5|6)/.test(navigator.userAgent) ||
|
||||
typeof elm.filters == 'unknown'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (!this.data[elm.uniqueID]) {
|
||||
this.data[elm.uniqueID] = {
|
||||
className: ''
|
||||
};
|
||||
}
|
||||
var data = this.data[elm.uniqueID],
|
||||
evt = init ? { propertyName: 'src,backgroundImage' } : event,
|
||||
isSrc = /src/.test(evt.propertyName),
|
||||
isBg = /backgroundImage/.test(evt.propertyName),
|
||||
isPos = /width|height|background(Pos|Rep)/.test(evt.propertyName),
|
||||
isClass = !init && ((elm.className != data.className) &&
|
||||
(elm.className || data.className));
|
||||
if (!(isSrc || isBg || isPos || isClass)) {
|
||||
return;
|
||||
}
|
||||
data.className = elm.className;
|
||||
var blank = this.blankImg.match(/([^\/]+)$/)[1],
|
||||
eS = elm.style,
|
||||
eCS = elm.currentStyle;
|
||||
|
||||
// Required for Whatever:hover - erase set BG if className changes.
|
||||
if (
|
||||
isClass && (eS.backgroundImage.indexOf('url(') == -1 ||
|
||||
eS.backgroundImage.indexOf(blank) > -1)
|
||||
) {
|
||||
return setTimeout(function() {
|
||||
eS.backgroundImage = '';
|
||||
}, 0);
|
||||
}
|
||||
|
||||
// Foregrounds.
|
||||
if (isSrc && elm.src && { IMG: 1, INPUT: 1 }[elm.nodeName]) {
|
||||
if ((/\.png/i).test(elm.src)) {
|
||||
this.fix(elm, elm.src, 2);
|
||||
} else if (elm.src.indexOf(blank) == -1) {
|
||||
this.fix(elm, '');
|
||||
}
|
||||
}
|
||||
|
||||
// Backgrounds.
|
||||
var bgSrc = eCS.backgroundImage || eS.backgroundImage;
|
||||
if ((bgSrc + elm.src).indexOf(blank) == -1) {
|
||||
var bgPNG = bgSrc.match(/url[("']+(.*\.png[^\)"']*)[\)"']/i);
|
||||
if (bgPNG) {
|
||||
if (this.tileBG && !{ IMG: 1, INPUT: 1 }[elm.nodeName]) {
|
||||
this.tileBG(elm, bgPNG[1]);
|
||||
this.fix(elm, '', 1);
|
||||
} else {
|
||||
if (data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, '');
|
||||
}
|
||||
this.fix(elm, bgPNG[1], 1);
|
||||
this.childFix(elm);
|
||||
}
|
||||
} else {
|
||||
if (data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, '');
|
||||
}
|
||||
this.fix(elm, '');
|
||||
}
|
||||
} else if ((isPos || isClass) && data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, data.tiles.src);
|
||||
}
|
||||
|
||||
if (init) {
|
||||
this.hook.enabled = 1;
|
||||
elm.attachEvent('onpropertychange', this.hook);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.childFix = function(elm) {
|
||||
// "hasLayout" fix for unclickable children inside PNG backgrounds.
|
||||
var tags = [
|
||||
'a',
|
||||
'input',
|
||||
'select',
|
||||
'textarea',
|
||||
'button',
|
||||
'iframe',
|
||||
'object'
|
||||
],
|
||||
t = tags.length,
|
||||
tFix = [];
|
||||
while (t--) {
|
||||
var pFix = elm.all.tags(tags[t]),
|
||||
e = pFix.length;
|
||||
while (e--) {
|
||||
tFix.push(pFix[e]);
|
||||
}
|
||||
}
|
||||
t = tFix.length;
|
||||
if (t && (/relative|absolute/i).test(elm.currentStyle.position)) {
|
||||
alert('IEPNGFix: Unclickable children of element:' +
|
||||
'\n\n<' + elm.nodeName + (elm.id && ' id=' + elm.id) + '>');
|
||||
}
|
||||
while (t--) {
|
||||
if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) {
|
||||
tFix[t].style.position = 'relative';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.hook = function() {
|
||||
if (IEPNGFix.hook.enabled) {
|
||||
IEPNGFix.process(element, 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.process(element, 1);
|
||||
|
||||
</script>
|
||||
</public:component>
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
</dd>
|
||||
</dl>
|
||||
<div id="header">
|
||||
<h1><!--@if($layout_info->logo_image)--><a href="{$layout_info->index_url}"><img src="{$layout_info->logo_image}" alt="{$layout_info->logo_text}"|cond="$layout_info->logo_text" alt="logo"|cond="!$layout_info->logo_text" border="0" class="iePngFix" /></a><!--@else-->{$layout_info->logo_text}<!--@end--></h1>
|
||||
<h1><!--@if($layout_info->logo_image)--><a href="{$layout_info->index_url}"><img src="{$layout_info->logo_image}" alt="{$layout_info->logo_text}"|cond="$layout_info->logo_text" alt="logo"|cond="!$layout_info->logo_text" border="0" /></a><!--@else-->{$layout_info->logo_text}<!--@end--></h1>
|
||||
|
||||
<!-- GNB -->
|
||||
<div class="gnb">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
@charset "utf-8";
|
||||
/* NHN (developers@xpressengine.com) */
|
||||
body { margin:0;padding:0; font-size:.75em;}
|
||||
.iePngFix { behavior:url(../js/iePngFix.htc); }
|
||||
/* Default Skin - Start */
|
||||
#selectLang{display:none;margin:0;padding:0}
|
||||
#gnb{margin:0;padding:0}
|
||||
|
|
|
|||
|
|
@ -1,187 +0,0 @@
|
|||
<public:component>
|
||||
<script type="text/javascript">
|
||||
|
||||
// IE5.5+ PNG Alpha Fix v2.0 Alpha
|
||||
// (c) 2004-2008 Angus Turnbull http://www.twinhelix.com
|
||||
|
||||
// This is licensed under the GNU LGPL, version 2.1 or later.
|
||||
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
|
||||
|
||||
var IEPNGFix = window.IEPNGFix || {};
|
||||
IEPNGFix.data = IEPNGFix.data || {};
|
||||
|
||||
|
||||
// This must be a path to a blank image, relative to the HTML document(s).
|
||||
// In production use I suggest '/images/blank.gif' or similar. That's all!
|
||||
IEPNGFix.blankImg = 'layouts/xe_sapphire/js/blank.gif';
|
||||
|
||||
|
||||
IEPNGFix.fix = function(elm, src, t) {
|
||||
// Applies an image 'src' to an element 'elm' using the DirectX filter.
|
||||
// If 'src' is null, filter is disabled.
|
||||
// Disables the 'hook' to prevent infinite recursion on setting BG/src.
|
||||
// 't' = type, where background tile = 0, background = 1, IMG SRC = 2.
|
||||
|
||||
var h = this.hook.enabled;
|
||||
this.hook.enabled = 0;
|
||||
|
||||
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
|
||||
src = (src || '').replace(/\(/g, '%28').replace(/\)/g, '%29');
|
||||
|
||||
if (
|
||||
src && !(/IMG|INPUT/.test(elm.nodeName) && (t != 2)) &&
|
||||
elm.currentStyle.width == 'auto' && elm.currentStyle.height == 'auto'
|
||||
) {
|
||||
elm.style.width = elm.offsetWidth + 'px';
|
||||
elm.style.height = elm.clientHeight + 'px';
|
||||
if (elm.currentStyle.display == 'inline') {
|
||||
elm.style.display = 'inline-block';
|
||||
}
|
||||
}
|
||||
|
||||
if (t == 1) {
|
||||
elm.style.backgroundImage = 'url("' + this.blankImg + '")';
|
||||
}
|
||||
if (t == 2) {
|
||||
elm.src = this.blankImg;
|
||||
}
|
||||
|
||||
if (elm.filters[f]) {
|
||||
elm.filters[f].enabled = src ? true : false;
|
||||
if (src) {
|
||||
elm.filters[f].src = src;
|
||||
}
|
||||
} else if (src) {
|
||||
elm.style.filter = 'progid:' + f + '(src="' + src +
|
||||
'",sizingMethod="' + (t == 2 ? 'scale' : 'crop') + '")';
|
||||
}
|
||||
|
||||
this.hook.enabled = h;
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.process = function(elm, init) {
|
||||
// Checks the onpropertychange event (on first 'init' run, a fake event)
|
||||
// and calls the filter-applying-functions.
|
||||
|
||||
if (
|
||||
!/MSIE (5\.5|6)/.test(navigator.userAgent) ||
|
||||
typeof elm.filters == 'unknown'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (!this.data[elm.uniqueID]) {
|
||||
this.data[elm.uniqueID] = {
|
||||
className: ''
|
||||
};
|
||||
}
|
||||
var data = this.data[elm.uniqueID],
|
||||
evt = init ? { propertyName: 'src,backgroundImage' } : event,
|
||||
isSrc = /src/.test(evt.propertyName),
|
||||
isBg = /backgroundImage/.test(evt.propertyName),
|
||||
isPos = /width|height|background(Pos|Rep)/.test(evt.propertyName),
|
||||
isClass = !init && ((elm.className != data.className) &&
|
||||
(elm.className || data.className));
|
||||
if (!(isSrc || isBg || isPos || isClass)) {
|
||||
return;
|
||||
}
|
||||
data.className = elm.className;
|
||||
var blank = this.blankImg.match(/([^\/]+)$/)[1],
|
||||
eS = elm.style,
|
||||
eCS = elm.currentStyle;
|
||||
|
||||
// Required for Whatever:hover - erase set BG if className changes.
|
||||
if (
|
||||
isClass && (eS.backgroundImage.indexOf('url(') == -1 ||
|
||||
eS.backgroundImage.indexOf(blank) > -1)
|
||||
) {
|
||||
return setTimeout(function() {
|
||||
eS.backgroundImage = '';
|
||||
}, 0);
|
||||
}
|
||||
|
||||
// Foregrounds.
|
||||
if (isSrc && elm.src && { IMG: 1, INPUT: 1 }[elm.nodeName]) {
|
||||
if ((/\.png/i).test(elm.src)) {
|
||||
this.fix(elm, elm.src, 2);
|
||||
} else if (elm.src.indexOf(blank) == -1) {
|
||||
this.fix(elm, '');
|
||||
}
|
||||
}
|
||||
|
||||
// Backgrounds.
|
||||
var bgSrc = eCS.backgroundImage || eS.backgroundImage;
|
||||
if ((bgSrc + elm.src).indexOf(blank) == -1) {
|
||||
var bgPNG = bgSrc.match(/url[("']+(.*\.png[^\)"']*)[\)"']/i);
|
||||
if (bgPNG) {
|
||||
if (this.tileBG && !{ IMG: 1, INPUT: 1 }[elm.nodeName]) {
|
||||
this.tileBG(elm, bgPNG[1]);
|
||||
this.fix(elm, '', 1);
|
||||
} else {
|
||||
if (data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, '');
|
||||
}
|
||||
this.fix(elm, bgPNG[1], 1);
|
||||
this.childFix(elm);
|
||||
}
|
||||
} else {
|
||||
if (data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, '');
|
||||
}
|
||||
this.fix(elm, '');
|
||||
}
|
||||
} else if ((isPos || isClass) && data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, data.tiles.src);
|
||||
}
|
||||
|
||||
if (init) {
|
||||
this.hook.enabled = 1;
|
||||
elm.attachEvent('onpropertychange', this.hook);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.childFix = function(elm) {
|
||||
// "hasLayout" fix for unclickable children inside PNG backgrounds.
|
||||
var tags = [
|
||||
'a',
|
||||
'input',
|
||||
'select',
|
||||
'textarea',
|
||||
'button',
|
||||
'iframe',
|
||||
'object'
|
||||
],
|
||||
t = tags.length,
|
||||
tFix = [];
|
||||
while (t--) {
|
||||
var pFix = elm.all.tags(tags[t]),
|
||||
e = pFix.length;
|
||||
while (e--) {
|
||||
tFix.push(pFix[e]);
|
||||
}
|
||||
}
|
||||
t = tFix.length;
|
||||
if (t && (/relative|absolute/i).test(elm.currentStyle.position)) {
|
||||
alert('IEPNGFix: Unclickable children of element:' +
|
||||
'\n\n<' + elm.nodeName + (elm.id && ' id=' + elm.id) + '>');
|
||||
}
|
||||
while (t--) {
|
||||
if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) {
|
||||
tFix[t].style.position = 'relative';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.hook = function() {
|
||||
if (IEPNGFix.hook.enabled) {
|
||||
IEPNGFix.process(element, 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.process(element, 1);
|
||||
|
||||
</script>
|
||||
</public:component>
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
<!--@end-->
|
||||
<div id="bodyWrap">
|
||||
<div id="header">
|
||||
<h1><a href="{$layout_info->index_url}"><!--@if($layout_info->logo_image)--><img src="{$layout_info->logo_image}" alt="{$layout_info->logo_text}"|cond="$layout_info->logo_text" alt="logo"|cond="!$layout_info->logo_text" border="0" class="iePngFix" /><!--@elseif($layout_info->logo_text)-->{$layout_info->logo_text}<!--@else-->Global XE<!--@end--></a></h1>
|
||||
<h1><a href="{$layout_info->index_url}"><!--@if($layout_info->logo_image)--><img src="{$layout_info->logo_image}" alt="{$layout_info->logo_text}"|cond="$layout_info->logo_text" alt="logo"|cond="!$layout_info->logo_text" border="0" /><!--@elseif($layout_info->logo_text)-->{$layout_info->logo_text}<!--@else-->Global XE<!--@end--></a></h1>
|
||||
<!-- top_area -->
|
||||
<div class="top_area">
|
||||
<dl id="language">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
body {font-size: 12px;font-family:sans-serif; margin: 0; padding: 0;}
|
||||
img{border:none;}
|
||||
.iePngFix {behavior:url(../js/iePngFix.htc)}
|
||||
/* head */
|
||||
#wrap {width:100%;}
|
||||
#wrap .top {width:100%;height:73px;z-index:300;background:url(../images/header_bg.gif) repeat-x top left;}
|
||||
|
|
|
|||
|
|
@ -1,187 +0,0 @@
|
|||
<public:component>
|
||||
<script type="text/javascript">
|
||||
|
||||
// IE5.5+ PNG Alpha Fix v2.0 Alpha
|
||||
// (c) 2004-2008 Angus Turnbull http://www.twinhelix.com
|
||||
|
||||
// This is licensed under the GNU LGPL, version 2.1 or later.
|
||||
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
|
||||
|
||||
var IEPNGFix = window.IEPNGFix || {};
|
||||
IEPNGFix.data = IEPNGFix.data || {};
|
||||
|
||||
|
||||
// This must be a path to a blank image, relative to the HTML document(s).
|
||||
// In production use I suggest '/images/blank.gif' or similar. That's all!
|
||||
IEPNGFix.blankImg = 'layouts/xe_solid_enterprise/js/blank.gif';
|
||||
|
||||
|
||||
IEPNGFix.fix = function(elm, src, t) {
|
||||
// Applies an image 'src' to an element 'elm' using the DirectX filter.
|
||||
// If 'src' is null, filter is disabled.
|
||||
// Disables the 'hook' to prevent infinite recursion on setting BG/src.
|
||||
// 't' = type, where background tile = 0, background = 1, IMG SRC = 2.
|
||||
|
||||
var h = this.hook.enabled;
|
||||
this.hook.enabled = 0;
|
||||
|
||||
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
|
||||
src = (src || '').replace(/\(/g, '%28').replace(/\)/g, '%29');
|
||||
|
||||
if (
|
||||
src && !(/IMG|INPUT/.test(elm.nodeName) && (t != 2)) &&
|
||||
elm.currentStyle.width == 'auto' && elm.currentStyle.height == 'auto'
|
||||
) {
|
||||
elm.style.width = elm.offsetWidth + 'px';
|
||||
elm.style.height = elm.clientHeight + 'px';
|
||||
if (elm.currentStyle.display == 'inline') {
|
||||
elm.style.display = 'inline-block';
|
||||
}
|
||||
}
|
||||
|
||||
if (t == 1) {
|
||||
elm.style.backgroundImage = 'url("' + this.blankImg + '")';
|
||||
}
|
||||
if (t == 2) {
|
||||
elm.src = this.blankImg;
|
||||
}
|
||||
|
||||
if (elm.filters[f]) {
|
||||
elm.filters[f].enabled = src ? true : false;
|
||||
if (src) {
|
||||
elm.filters[f].src = src;
|
||||
}
|
||||
} else if (src) {
|
||||
elm.style.filter = 'progid:' + f + '(src="' + src +
|
||||
'",sizingMethod="' + (t == 2 ? 'scale' : 'crop') + '")';
|
||||
}
|
||||
|
||||
this.hook.enabled = h;
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.process = function(elm, init) {
|
||||
// Checks the onpropertychange event (on first 'init' run, a fake event)
|
||||
// and calls the filter-applying-functions.
|
||||
|
||||
if (
|
||||
!/MSIE (5\.5|6)/.test(navigator.userAgent) ||
|
||||
typeof elm.filters == 'unknown'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (!this.data[elm.uniqueID]) {
|
||||
this.data[elm.uniqueID] = {
|
||||
className: ''
|
||||
};
|
||||
}
|
||||
var data = this.data[elm.uniqueID],
|
||||
evt = init ? { propertyName: 'src,backgroundImage' } : event,
|
||||
isSrc = /src/.test(evt.propertyName),
|
||||
isBg = /backgroundImage/.test(evt.propertyName),
|
||||
isPos = /width|height|background(Pos|Rep)/.test(evt.propertyName),
|
||||
isClass = !init && ((elm.className != data.className) &&
|
||||
(elm.className || data.className));
|
||||
if (!(isSrc || isBg || isPos || isClass)) {
|
||||
return;
|
||||
}
|
||||
data.className = elm.className;
|
||||
var blank = this.blankImg.match(/([^\/]+)$/)[1],
|
||||
eS = elm.style,
|
||||
eCS = elm.currentStyle;
|
||||
|
||||
// Required for Whatever:hover - erase set BG if className changes.
|
||||
if (
|
||||
isClass && (eS.backgroundImage.indexOf('url(') == -1 ||
|
||||
eS.backgroundImage.indexOf(blank) > -1)
|
||||
) {
|
||||
return setTimeout(function() {
|
||||
eS.backgroundImage = '';
|
||||
}, 0);
|
||||
}
|
||||
|
||||
// Foregrounds.
|
||||
if (isSrc && elm.src && { IMG: 1, INPUT: 1 }[elm.nodeName]) {
|
||||
if ((/\.png/i).test(elm.src)) {
|
||||
this.fix(elm, elm.src, 2);
|
||||
} else if (elm.src.indexOf(blank) == -1) {
|
||||
this.fix(elm, '');
|
||||
}
|
||||
}
|
||||
|
||||
// Backgrounds.
|
||||
var bgSrc = eCS.backgroundImage || eS.backgroundImage;
|
||||
if ((bgSrc + elm.src).indexOf(blank) == -1) {
|
||||
var bgPNG = bgSrc.match(/url[("']+(.*\.png[^\)"']*)[\)"']/i);
|
||||
if (bgPNG) {
|
||||
if (this.tileBG && !{ IMG: 1, INPUT: 1 }[elm.nodeName]) {
|
||||
this.tileBG(elm, bgPNG[1]);
|
||||
this.fix(elm, '', 1);
|
||||
} else {
|
||||
if (data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, '');
|
||||
}
|
||||
this.fix(elm, bgPNG[1], 1);
|
||||
this.childFix(elm);
|
||||
}
|
||||
} else {
|
||||
if (data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, '');
|
||||
}
|
||||
this.fix(elm, '');
|
||||
}
|
||||
} else if ((isPos || isClass) && data.tiles && data.tiles.src) {
|
||||
this.tileBG(elm, data.tiles.src);
|
||||
}
|
||||
|
||||
if (init) {
|
||||
this.hook.enabled = 1;
|
||||
elm.attachEvent('onpropertychange', this.hook);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.childFix = function(elm) {
|
||||
// "hasLayout" fix for unclickable children inside PNG backgrounds.
|
||||
var tags = [
|
||||
'a',
|
||||
'input',
|
||||
'select',
|
||||
'textarea',
|
||||
'button',
|
||||
'iframe',
|
||||
'object'
|
||||
],
|
||||
t = tags.length,
|
||||
tFix = [];
|
||||
while (t--) {
|
||||
var pFix = elm.all.tags(tags[t]),
|
||||
e = pFix.length;
|
||||
while (e--) {
|
||||
tFix.push(pFix[e]);
|
||||
}
|
||||
}
|
||||
t = tFix.length;
|
||||
if (t && (/relative|absolute/i).test(elm.currentStyle.position)) {
|
||||
alert('IEPNGFix: Unclickable children of element:' +
|
||||
'\n\n<' + elm.nodeName + (elm.id && ' id=' + elm.id) + '>');
|
||||
}
|
||||
while (t--) {
|
||||
if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) {
|
||||
tFix[t].style.position = 'relative';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.hook = function() {
|
||||
if (IEPNGFix.hook.enabled) {
|
||||
IEPNGFix.process(element, 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
IEPNGFix.process(element, 1);
|
||||
|
||||
</script>
|
||||
</public:component>
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<div class="top">
|
||||
<div class="header">
|
||||
<div class="logo">
|
||||
<a href="{$layout_info->index_url}" cond="$layout_info->logo_image"><img src="{$layout_info->logo_image}" class="iePngFix" alt="LOGO" title="LOGO" /></a>
|
||||
<a href="{$layout_info->index_url}" cond="$layout_info->logo_image"><img src="{$layout_info->logo_image}" alt="LOGO" title="LOGO" /></a>
|
||||
<a href="{$layout_info->index_url}" cond="!$layout_info->logo_image">{$layout_info->logo_image_alt}</a>
|
||||
</div>
|
||||
<ul class="gnb">
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="shadow" class="shadow" style="height:99px!important;display:none">
|
||||
<img src="./images/slide_shadow.png" height="99" width="927" alt="" class="iePngFix" />
|
||||
<img src="./images/slide_shadow.png" height="99" width="927" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue