// tab
function initTabMenu(tabContainerID) {
var tabContainer = document.getElementById(tabContainerID);
var tabAnchor = tabContainer.getElementsByTagName("a");
var i = 0;
/* 텍스트 사이즈 조절 */
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function font_getCookie( name )
{
var nameOfCookie = name + "=";
var x = 0;
cookieFlg = document.cookie.indexOf(nameOfCookie);
if (cookieFlg != -1) {
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}
else{
return 15;
}
}
function getCookie() {
var cookie = font_getCookie("getSize");
if ( cookie == null )
return 15;
if ( cookie.length )
return cookie;
else
return 15;
}
if (document.getElementById('order_view0'+i).style.display=="none"){ //눌린 버튼에 해당하는 id의 디스플레이 상태가 none이라면 document.getElementById('order_view0'+i).style.display=""; // 보이도록 설정한다. };
</td> </tr> <tr><td colspan="4"><hr class="dotted"></hr></td></tr> <tr> <td class="info_view2">무통장입금<br />주의사항</td> <td colspan="3"> <div class="info_view4">모든 상품의 배송은 입금 확인후 이루어집니다!! <br />(회원님이 입금을 빨리 하실수록 상품을 빨리 받아보실 수 있습니다.)</div> <div class="info_view4">주문에 한정수량으로 판매하는 제품이 한가지라도 포함된 경우에는 주문된 다음날<br />(토요일, 공휴일 제외) 오후 3시까지 입금을 안 하시면 본 주문은 자동 취소됩니다.</div> <div class="info_view4">일반적인 무통장입금 주문의 경우는 주문일 기준 2일 경과(토요일, 공휴일 제외)할 때까지 입금을 안 하시면 자동 취소됩니다.</div> </td> </tr> </table> </div>
CSS를 이용한 방법도 소개되고 있어 살펴보니 Background 프로퍼티에 따라서 깜빡거리는 현상이 발생한다고 합니다.
background style에
background-color에 특정색이 설정되는 경우
background-repeat 시키지 않는경우
background-position을 설정하는 경우
와 같이 background요소가 설정되는 경우 flick거리게 됩니다. 또 background요소로 깔리는 이미지 영역이 2500픽셀 미만이 되면 역시 flick하게 됩니다. 가령 아래와 같은 경우는 해당 영역의 총 넓이 값이 2450픽셀로 2500픽셀 미만이므로 깜빡거리게 됩니다.
a { width: 49px; height: 50px; }
이 외에도 설정하려는 이미지가 투명이미지인 경우도 그렇습니다.
마지막으로 스크립트를 이용한 방법도 있습니다.
<script type="text/javascript">
(function(){
/*Use Object Detection to detect IE6*/
var m = document.uniqueID /*IE*/
document.compatMode /*>=IE6*/
!window.XMLHttpRequest /*<=IE6*/
document.execCommand ;
try{
if(!!m){
m("BackgroundImageCache", false, true) /* = IE6 only */
}
}catch(oh){};
})();
</script>
그냥 실행되고록 해놓은 코드로 삽입하면 됩니다. flicker현상을 위한 코드는 아닌데 부수적으로 flicker 효과를 없애는 역활까지 해주는거 같네요. IE6 에서만 문제되는 현상이기 때문에 해당 코드 삽입 형식에 제일 편하지 않을까 합니다