// ±Û ³»¿ë ToolTip // var _ToolTip = null; // À̺¥Æ®¸¦ À§ÇÑ Àü¿ªº¯¼ö var tooltip_width = 250; var ToolTipBrower = (document.getElementById)?true:false; ToolTipBrower = (document.all)?true:false; function ToolTip() { this.pointX = 0; this.pointY = 0; this.toolTip = null; this.toolTipID = null; _ToolTip = this; } ToolTip.prototype.tooltipLoad = function () { this.toolTip.innerHTML = document.getElementById(this.toolTipID).innerHTML; }; ToolTip.prototype.displayToolTip = function () { this.toolTip.style.left = (this.pointX + 5) + 'px'; this.toolTip.style.top = (this.pointY + 5) + 'px'; this.toolTip.style.display = 'block'; }; ToolTip.prototype.moveToolTip = function (evt) { this.setToolTipPosition(evt); this.displayToolTip(); }; ToolTip.prototype.hideToolTip = function () { this.toolTip.style.display = 'none'; }; ToolTip.prototype.hideRequestToolTip = function () { setTimeout(function () { _ToolTip.hideToolTip(); }, 10); }; ToolTip.prototype.setToolTipPosition = function (evt) { this.pointX = evt.pageX ? evt.pageX : document.body.scrollLeft + evt.clientX - document.body.clientLeft; this.pointY = evt.pageY ? evt.pageY : document.body.scrollTop + evt.clientY - document.body.clientTop-1; }; ToolTip.prototype.showToolTip = function (objRef, evt, toolTipID) { if (this.toolTipID == toolTipID) { if(toolTipID.indexOf("tooltip9") != -1) { tooltip_width = 320; } else { tooltip_width = 250; } this.displayToolTip(); return; } this.toolTipID = toolTipID; if (!this.toolTip) { var toolTip = document.createElement('div'); this.toolTip = toolTip; if(ToolTipBrower) { toolTip.style.position = 'absolute'; toolTip.style.border = '1 solid #5256ac'; toolTip.style.background = '#FFFFFF'; toolTip.style.padding = '4'; toolTip.style.height = '5'; toolTip.style.display = 'none'; toolTip.style.width = tooltip_width; toolTip.className = 'toolTip'; } if(ToolTipBrower == false) { toolTip.style.display = 'none'; toolTip.style.position = 'absolute'; toolTip.style.width = tooltip_width; toolTip.className = 'toolTip1'; } document.body.appendChild(toolTip); toolTip.onmouseover = toolTip.onmousemove = this.moveToolTipEvent; toolTip.onmouseout = this.hideRequestToolTipEvent; } else { this.hideToolTip(); } this.tooltipLoad(); objRef.onmousemove = this.moveToolTipEvent; objRef.onmouseout = this.hideRequestToolTipEvent; }; ToolTip.prototype.moveToolTipEvent = function () { var evt = (arguments.length != 0) ? arguments[0] : window.event; _ToolTip.moveToolTip(evt); }; ToolTip.prototype.hideRequestToolTipEvent = function () { _ToolTip.hideRequestToolTip(); }; var _T = new ToolTip(); //À¥¿¡µðÅÍ function fckeditor_load() { var sBasePath = '/egams/stts/jsp/admin/bbs/fckeditor/'; var oFCKeditor = new FCKeditor( 'content' ) ; oFCKeditor.BasePath = sBasePath ; oFCKeditor.ReplaceTextarea() ; } // ÆÄÀÏ»çÀÌÁî ¹× È®ÀåÀÚ °Ë»ç function checkFileSize(obj, bbs){ var objName = event.srcElement.name; var checkCall = "/egams/stts/jsp/admin/bbs/indx/AD_INDX_FileSize.jsp?bbs=" + bbs + "&fileName=" + obj.value + "&objName=" + objName; fileSize.location.href = checkCall; } function fileDown(uDir, fnm, apnd_file_path) { location.href="/egams/stts/jsp/admin/bbs/indx/AD_BBS_BordDown.jsp?path="+uDir+"&filenm="+ fnm + "&apndpath=" + apnd_file_path; }