var hasIE_phone_home = 0;
// 이 함수는 실제 브라우저 감지를 수행합니다.
writeCookie(name, value, hour)
{
var expire = "";
if(시간 != null)
{
expire = new Date((new Date()).getTime() 시간 * 360000000);
expire = "; expires=" expire.toGMTString();
}
document.cookie = 이름 "=" escape(값) expire;
}
// 예:
// alert( readCookie("myCookie") );
함수 readCookie(이름)
{
var cookieValue = "";
var search = 이름 "=";
if(document.cookie.length > 0)
{
offset = document.cookie.indexOf(search);
if (오프셋 != -1)
{
offset = search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
cookieValue = unescape(document.cookie.substring(offset, end))
}
}
return cookieValue;
}
함수 hasIE_hasIE() {
var ua = navigator.userAgent.toLowerCase();
return ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) &&
(ua.indexOf('webtv') == - 1) &&
(location.href.indexOf('seenIEPage') == -1));
}
함수 hasIE_showOnlyLayer(whichLayer)
{
if (document.getElementById)
{
var style2 = document.getElementById(whichLayer);
}
else if (document.all)
{
var style2 = document.all[whichLayer];
}
else if (document.layers)
{
var style2 = document.layers[whichLayer];
}
var body = document.getElementsByTagName('body');
body[0].innerHTML = style2.innerHTML;
}
함수 hasIE_showLayer(whichLayer)
{
if (document.getElementById)
{
var style2 = document.getElementById(whichLayer).style;
style2.display = "차단";
}
else if (document.all)
{
var style2 = document.all[whichLayer].style;
style2.display = "차단";
}
else if (document.layers)
{
var style2 = document.layers[whichLayer].style;
style2.display = "차단";
}
}
function hasIE_moveAd(adid) {
if (document.getElementById)
{
var ad = document.getElementById('hasIE_ad');
var adloc = document.getElementById(adid);
}
else if (document.all)
{
var ad = document.all['hasIE_ad'];
var adloc = document.all[adid];
}
else if (document.layers)
{
var ad = document.layers['hasIE_ad'];
var adloc = document.layers[adid];
}
adloc.innerHTML = ad.innerHTML;
}
// IE에서 실행 중인지 여부에 따라 페이지 섹션을 숨기고 표시합니다.
함수 hasIE_hideAndShow() {
if(hasIE_hasIE()) {
hasIE_showLayer("hasIE_level1");
if (hasIE_phone_home == 1)
hasIE_phoneHome('getIE_pingimage1');
} else {
if (hasIE_phone_home == 1)
hasIE_phoneHome('getIE_pingimage0');
}
}
function hasIE_phoneHome(image) {
if (document.getElementById)
{
var img = document.getElementById(image);
}
else if (document.all)
{
var img = document.all[image];
}
else if (document.layers)
{
var img = document.layers[image];
}
//img.setAttribute('src','http://getunder50.com/ping.php?host=' location.host);
}
함수 hasIE_ContinueWithoutFF() {
if (location.href.indexOf('?') != -1)
location.href = '&seenIEPage=1' ;
else
location.href = '?seenIEPage=1';
}
function closediv(i) {
writeCookie("status","showed24",240);
document.getElementById(i).style.display='none';
}
document.write("