본문 바로가기
책갈피

황당 법률

임윤주 |2008.12.30 11:57
조회 335 |추천 0
<STYLE type=text/css> DIV.autosourcing-stub { display:none } DIV.autosourcing-stub-extra { position:absolute; opacity:0 } document.domain = "naver.com"; var cclImageIconTopScrap = 0; var cclImageIconLeftScrap = 0; var cclImageIconTop = 0; var cclImageIconLeft = 0; if ($Agent().IE55) { cclImageIconTopScrap = 5; cclImageIconLeftScrap = 16; cclImageIconTop = 15; cclImageIconLeft = 7; } LH.add("blockEmbedObjectAd()"); LH.add("eventpopup()"); LH.add("parent.setTop()"); function initAutoAndRight() { AutoSourcing.init( 'post_%id%' , false ); } LH.add( "initAutoAndRight()" ); var cafeSendPostLayer = { cL : null, currentLayer : null, init : function() { this.cL = new Ju.controlLayer(); this.cL.show = function(sLayerID, nTop, nLeft){ if(this._oElement == null || this._sElementID != sLayerID) this._bBlockReOpen = false; this._sElementID = sLayerID this._oElement = $(sLayerID); if(this._bBlockReOpen == false){ this._oElement.style.display = "block"; if(nTop || nLeft){ this._oElement.style.top = nTop; this._oElement.style.left = nLeft; } Event.addEventListener(this._oElement, "mouseover", this._onMouseOverFunction); Event.addEventListener(this._oElement, "mouseout", this._onMouseOutFunction); Event.addEventListener(document.body, "mousedown", this._checkLayer.bind(this)); this.options.onShow(this._oElement); } }; this.cL.hide = function(sLayerID){ if(sLayerID) this._oElement = $(sLayerID); this._oElement.style.display = "none"; Event.removeListener(this._oElement, "mouseover", this._onMouseOverFunction); Event.removeListener(this._oElement, "mouseout", this._onMouseOutFunction); Event.removeListener(document.body, "mousedown", this._checkLayer.bind(this)); this.options.onHide(); }; this.cL._checkLayer = function(){ if(this._bCursorOver == false){ this.hide(); if (!this._bParentOver) { cafeSendPostLayer.currentLayer = null; } } }; }, show : function(el, logNo, evt) { try { if (this.currentLayer != logNo) { var pos = this.setLayerPos(logNo); this.cL.show(el, pos.top, pos.left); this.currentLayer = logNo; } else { this.currentLayer = null; } } catch(e) { //console.log(e) } }, hide : function(el) { Element.hide(el); if (!this.cL._bParentOver) { this.currentLayer = null; } }, setLayerPos : function(logNo) { Element.show($("sendPostLayer_"+logNo)); var sendPostPos = Element.realPos($("sendPost_"+logNo)); return { top: (sendPostPos.top + $("sendPost_"+logNo).offsetHeight) - 20 + "px", left: (sendPostPos.left + $("sendPost_"+logNo).offsetWidth - $("sendPostLayer_"+logNo).offsetWidth) + "px" }; }, parentOver : function(logNo) { this.cL._bParentOver = true; }, parentOut : function(logNo) { this.cL._bParentOver = false; } }; var cafeSendPost = { logNo : [], setLogNo : function(logNo) { this.logNo.push(logNo); }, getLogNo : function() { return this.logNo; }, kept : [], setKeptInstance : function(logNo, kept) { this.setLogNo(logNo); this.kept.push({ "logNo" : logNo, "kept" : kept }); }, getKeptInstance : function(logNo) { for (var i=0; i 0 ) { arrHtml.push('| ' + kept.commentname + '' + kept.commentcount + ''); } arrHtml.push(""); sendPost.innerHTML = arrHtml.join(""); }else{ var eventStr = "onclick=\"cafeSendPostLayer.show('sendPostLayer_"+this.logNo+"',"+this.logNo+",event);return false;\" onmouseover=\"cafeSendPostLayer.parentOver('"+this.logNo+"');\" onmouseout=\"cafeSendPostLayer.parentOut('"+this.logNo+"');\""; sendPost.innerHTML = '이 글이 소개된 곳 (+'+this.oKept.length+') 다보기'; } } else { if ( $( "sep_" + this.logNo ) != null ) { $( "sep_" + this.logNo ).style.display = "none"; } } }, setSPListHtml : function() { var html = this.getSPListHtml(); if (html) { $("sendPostLayerDiv_"+this.logNo).innerHTML = html; } }, getSPListHtml : function() { //call back var html = new Array(); for ( i = 0 ; i < this.oKept.length ; i++ ) { var kept = this.oKept[i]; if(kept.srcurl=="") html.push("" + kept.leveragename + " : " + kept.categorynamedisplay + ""); else html.push("" + kept.leveragename + " : " + kept.categorynamedisplay + ""); if ( parseInt( kept.commentcount ) > 0 ) { html.push(" | " + kept.commentname); html.push(" " + kept.commentcount + ""); } html.push(""); } return html.join(""); }, getSPPopup : function() { var spInsideItem = ""; var spOutsideItem = ""; var html = new Array(); for (var i=0; i 0 ) { html.push("[" + kept.commentcount + "]"); } html.push(""); } } return html.join(""); } }); function resizeImage(num) { var IMAGE_WIDTH = 740; var oImg = eval("document.getElementById('userImg" + num + "')"); if (oImg.width > IMAGE_WIDTH){ var width = oImg.width; var height = oImg.height; var ratio = IMAGE_WIDTH/width; oImg.style.width = IMAGE_WIDTH+"px"; oImg.style.height = height*ratio+"px"; } parentResizeIframe('cafe_main'); } var mlayoutPhoto=new PhotoImageViewer({ target : parent, cssurl : "/common/storyphoto/original_viewer.css", ndsurl : "http://lcs.naver.com/i{100047243}", popupurl : "http://cafe.naver.com/common/storyphoto", allowRightMouseClick : true }); function popview(imgObj) { var url = ""; if(typeof imgObj == 'string'){ url = imgObj; }else if(typeof imgObj == 'object' && imgObj.parentNode != "undefined" && imgObj.src != "undefined"){ if(imgObj.parentNode.tagName == 'A'){ return; }else{ url = imgObj.src; } } mlayoutPhoto.doPlayer([url], 0); } function popclose() { if(typeof(mlayoutPhoto)!="undefined") { mlayoutPhoto.doClose(); } } window.onunload = popclose; function blockEmbedObjectAd() { var items = document.getElementsByTagName("EMBED"); for(var i=0; i
추천수0
반대수0

공감많은 뉴스 시사

더보기

뉴스 플러스