serverurl="http://www.ki-hyun.com/blog"; if(location.href.indexOf(serverurl)<0 && document.all){ location.href=serverurl+'/'+document.location.search+document.location.hash; } lastIndex=(location.href.indexOf("no=")>0)?0:2; currentIndex=(location.href.indexOf("ppage")>0)?lastIndex:0; function checkPP(){ if(currentIndex!=0){ document.anchors[currentIndex-1].scrollIntoView(); currentIndex--; } } function toSide(url){ window.open(url,"_search"); } function gonextP(){ var l=document.links; var ll=l.length; while(ll>0){ ll--; if(l[ll].href.indexOf('npage')>0&& location.href!=l[ll].href){ location.href=l[ll].href; return; } } status="³¡ºÎºÐÀÔ´Ï´Ù."; } function goprevP(){ var l=document.links; var ll=l.length; while(ll>0){ ll--; if(l[ll].href.indexOf('ppage')>0&&location.href!=l[ll].href){ location.href=l[ll].href; return; } } status="³¡ºÎºÐÀÔ´Ï´Ù."; } function gonext(){ currentIndex++; if(lastIndex>document.anchors.length)lastIndex=document.anchors.length; if(currentIndex>=lastIndex ){ gonextP();currentIndex=lastIndex-1; } else { document.anchors[currentIndex].scrollIntoView(); } } function goprev(){ currentIndex--; if(currentIndex<0){ goprevP(); currentIndex=0;} else { document.anchors[currentIndex].scrollIntoView(); } } function moveA(d){ if(location.href.indexOf('&simple')>0 )document.getElementById("mains").scrollIntoView(true); } function ShortCuts (e) { if (e == null) { code = event.keyCode; if(event.srcElement.tagName == "INPUT" ) return true; } else { if (e.altKey || e.ctrlKey) { return true; } if(e.target.tagName == "INPUT" ) return; code = e.which; } key = String.fromCharCode(code).toLowerCase(); if(code==13) key="enter"; switch(key) { case "z": { if(self.status.indexOf('og')<0){self.status="(< >)prev/next, (C)heckIn/Out,(V)iewToggle,(N)ew,(L)ogIn/Out,(A)dmin,(Z)og this"; }else { self.status='';} }; return false; case "c": { location.href='http://www.ki-hyun.com/blog//glogin.php?url=http://www.ki-hyun.com/blog/';}return false; case "n": { location.href='http://www.ki-hyun.com/blog//write/index.php';} return false; case "enter": { var no=document.anchors[currentIndex].name; location.href='http://www.ki-hyun.com/blog/?no='+no+'#'+no; } return false; case ">": { window.scroll(0,document.body.scrollHeight); return false; } case "<": { window.scroll(0,0); return false; } case ".": { status=""; gonext(); } return false; case ",": { status=""; goprev(); } return false; case "a": { open('http://www.ki-hyun.com/blog//admin.php','_self');} return false; case "v": { if (location.href.indexOf('http://www.ki-hyun.com/zboard/zboard.php?id=blog')<0) { location.href='http://www.ki-hyun.com/blog/?frame_url=http://www.ki-hyun.com/zboard/zboard.php?id=blog'; } else { location.href='http://www.ki-hyun.com/blog/'; } } return false; case "l": { location.href='http://www.ki-hyun.com/blog//login.php?url=http://www.ki-hyun.com/blog/';} return false; case "z": return false; } return true; } document.onkeypress=ShortCuts; function comment_expand(dir,num,flag){ var ls=location.pathname; if(ls.lastIndexOf('\/')0 &&fromElement.href.indexOf("id=blog")>0) //" { var b=fromElement.href.substr(a); if(b.indexOf("&")<0){ c=b.substr(3); }else { c=b.substring(3,b.indexOf("&")-1); } if (eventObject.preventDefault) { eventObject.stopPropagation() ; eventObject.preventDefault(); }eventObject.returnValue = false; if(!eventObject.shiftKey){ targetFrame.location.href='http://www.ki-hyun.com/blog/?no='+c ; } else { window.open('http://www.ki-hyun.com/blog/?no='+c); //' } return false; } //window.event.returnValue = false; return true; } var targetFrame=window; function resizeMainFrame(){ // alert(document.getElementById("mainFrame")); try{ var oFrame = document.getElementById("mainFrame"); if(!oFrame) return; } catch (exception) { return; } var oBody = frames["mainFrame"].document.body; /// zog 2.51 < if(frames["mainFrame"].location.href.indexOf("zboard.php")>0){ if(oBody.attachEvent) { oBody.attachEvent("onclick", checkLink);//IE } else if(oBody.addEventListener) { oBody.addEventListener("click", checkLink, false);//Gecko compatible } else if(oBody.onclick !=null) { OL = oBody.onclick; //Old browser sucks oBody.onclick = function() { checkLink(); OL(); } } else { //browser really sucks oBody.onclick = checkLink; } } /////> zog 2.51 if(!oBody) { setTimeout('resizeMainFrame()',90); return; } var f= document.getElementById("mainFrameDiv"); var min_width =f.style.width ;//clientWidth; // 450-2; //Ãּҳʺñ var i_height = oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight); if(i_height<50) { setTimeout('resizeMainFrame()',90); return; } f.style.height =oFrame.style.height = i_height; oFrame.style.width = min_width; } function resizeFrames(){ checkPP(); if( typeof document.getElementById("mainFrame") != 'undefined'){ try{var oBody=document.getElementById("mainFrame"); resizeMainFrame() } catch (exception) { } } /* for(var i=0;i } function toFrame(url,direct){ if( document.getElementById("mainFrame")){ document.getElementById("mainFrame").src=url+((direct)?direct:''); return false; } else { location.href='http://www.ki-hyun.com/blog/?frame_url='+escape(url)+((direct)?direct:''); return false; } } function zsearch(v){ if( v){ toFrame(" http://www.ki-hyun.com/zboard/zboard.php?id=blog&keyword=", v); } return false; } function toOpener(url){ if(window.name=="mainFrame"){ open(url,"_top"); return; } if(document.all) { open(url,"_main"); } else { open(url,"_content"); //open(url); } } //var oldFn = new String(window.onload); //window.onload = new Function("resizeFrames();" + oldFn); //var oldFn1 = new String(window.resize); window.onresize=function (){ resizeFrames(); } //resizeFrames(); function layer_toggle(obj) { // 2.51 by show&hide ±â´É by http://sa-rang.pe.kr/mblog if (obj.style.display == 'none') obj.style.display = 'block'; else if (obj.style.display == 'block') obj.style.display = 'none'; }
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0