ÀÛ¼ºÀÏ : 07-03-15 10:24
¹Ìµð¾îÇ÷¹À̾¼ µ¿¿µ»óÀÌ ¾È³ª¿Ã°æ¿ì Á¶Ä¡¹ý
±Û¾´ÀÌ :
Á¶È¸ : 3,290
<scRIPT language=javascript>
/****************************************************************************************
* ./lib/js/bbs.js
/****************************************************************************************/
/*
* KimsBoard Main script
*/
//¿äûµÈ Url(Äõ¸®½ºÆ®¸µ Á¦¿Ü)
function getThisFile()
{
//var QuerySplit = location.href.split('?');
//return QuerySplit[0];
return './bbs.php';
}
//¿äûµÈ ÆÄ¶ó¹ÌÅÍÀÇ Value
function getUriString(param)
{
return eval("document.DataForm." + param).value;
}
//°øÅë URL (Á¦¾îÆÄ¶ó¹ÌÅÍ query,uid,p Á¦¿Ü ; ÆÄ¶ó¹ÌÅͰªÀº getUriString('ÆÄ¸®¹ÌÅÍ') )
function getThisUrl()
{
var d = document.DataForm;
var table = d.table.value;
var query = d.query.value;
var p = d.p.value;
var uid = d.uid.value;
var where = d.where.value;
var keyword = d.keyword.value;
var search_step = d.search_step.value;
var search_type = d.search_type.value;
var category = d.category.value;
var sort = d.sort.value;
var orderby = d.orderby.value;
var grecnum = d.grecnum.value;
var cqurl = getThisFile();
cqurl += table ? '?table=' + table : '';
cqurl += where ? '&where=' + where : '';
cqurl += keyword ? '&keyword=' + keyword : '';
cqurl += search_step? '&search_step=' + search_step : '';
cqurl += search_type? '&search_type=' + search_type : '';
cqurl += category ? '&category=' + category : '';
cqurl += sort ? '&sort=' + sort : '';
cqurl += orderby ? '&orderby=' + orderby : '';
cqurl += grecnum ? '&grecnum=' + grecnum : '';
if (where && keyword)
{
cqurl += '&search_sql=' + getSearchSql(where , keyword);
}
return cqurl;
}
//Á¤·ÄUrl (Çʵå¸í ASC,DESCÁöÁ¤)
function getSort(field)
{
var d = document.DataForm;
if (d.sort.value == field)
{
if (d.orderby.value == "DESC")
{
d.orderby.value = "";
}
else {
d.orderby.value = "DESC";
}
}
else {
d.sort.value = field;
d.orderby.value = "DESC";
}
location.href = getThisUrl() + '&p=' + getUriString('p');
}
//¸¶Áö¸·ÆäÀÌÁö¼ö
function LastPage(p)
{
return document.getElementById('LastPage').value;
}
//±Ûº¸±â
function ViewArticle(uid,secret,dbid,tbl,win,e)
{
var url = getThisUrl();
var table = tbl != '' ? tbl : getUriString('table');
if(secret != '')
{
var CookieSecret = document.getElementById('CookieSecret').value;
var isRoot = document.getElementById('isRoot').value;
var isAdmin = document.getElementById('isAdmin').value;
var mbid = document.getElementById('mbid').value;
if(CookieSecret.indexOf(table + '_' + uid + '_' ) == -1)
{
if (mbid == '' || (mbid != '' && mbid != dbid))
{
if (isRoot == '0' && isAdmin == '0')
{
if (tbl != '') document.DataForm.table.value = tbl;
getPassLayer('secret',isRoot,isAdmin,mbid,dbid,uid,0,e);
return false;
}
}
}
}
if (win != '_win')
{
location.href = url + '&query=view&uid=' + uid + '&p=' + getUriString('p');
}
else {
var win = './bbs.php?table='+table+'&action=newwin&uid=' + uid;
window.open(win , 'output_win','width=650,height=600,scrollbars=yes');
}
}
//¸ñ·ÏÀ¸·Î
function getListPage()
{
location.href = getThisUrl() + '&p=' + getUriString('p');
}
//ÀϹݱ۾²±â
function getWritePage()
{
location.href = getThisUrl() + '&query=write';
}
//´äº¯¾²±â
function getReplyPage(uid)
{
location.href = getThisUrl() + '&query=write&write_type=reply&uid=' + uid + '&p=' + getUriString('p');
}
//ÆÐ½º¿öµåüũ ·¹À̾î, ¼öÁ¤/»èÁ¦
function getPassLayer(que,isRoot,isAdmin,mbid,dbid,uid,ruid,e)
{
if (isRoot != '0' || isAdmin != '0' || (mbid != '' && mbid == dbid))
{
if (que == 'modify')
{
location.href = getThisUrl() + '&query=write&write_type=modify&uid=' + uid + '&p=' + getUriString('p');
}
if (que == 'delete')
{
if(confirm('Á¤¸»·Î »èÁ¦ÇϽðڽÀ´Ï±î? '))
{
location.href = getThisUrl() + '&action=delete&uid=' + uid + '&p=' + getUriString('p');
}
}
return false;
}
if(!x) var x = e.pageX ? e.pageX : document.body.scrollLeft+event.clientX;
if(!y) var y = e.pageY ? e.pageY : document.body.scrollTop+event.clientY;
var l = document.getElementById('PassCheckLayer');
var f = document.pass_check_form;
var t = document.getElementById('PwLayTitle');
l.style.display = 'block';
l.style.left = x - 80;
l.style.top = y + 20;
f.table.value = getUriString('table');
f.action.value = que;
f.uid.value = uid;
f.ruid.value = ruid;
f.p.value = getUriString('p');
if (que == 'delete')
{
t.innerHTML = "°Ô½Ã¹°À» »èÁ¦ÇÕ´Ï´Ù.. ";
f.Nparam.value = getThisUrl() + '&p=' + getUriString('p');
}
if (que == 'modify')
{
t.innerHTML = "°Ô½Ã¹°À» ¼öÁ¤ÇÕ´Ï´Ù.. ";
f.Nparam.value = getThisUrl() + '&query=write&write_type=modify&p=' + getUriString('p') + '&uid=' + uid;
}
if (que == 'secret')
{
t.innerHTML = "ºñ°ø°³ °Ô½Ã¹°ÀÔ´Ï´Ù.. ";
f.Nparam.value = getThisUrl() + '&query=view&p=' + getUriString('p') + '&uid=' + uid;
}
if (que == 'cdelete')
{
t.innerHTML = "ÄÚ¸àÆ®¸¦ »èÁ¦ÇÕ´Ï´Ù.. ";
f.Nparam.value = getThisUrl() + '&query=view&p=' + getUriString('p') + '&uid=' + uid;
}
f.COMP_PASS.focus();
}
//°Ë»öSQL
function getSearchSql(where , keyword)
{
var i;
var SQL = "";
var search_type = document.DataForm.search_type.value;
search_type = search_type == 'and' ? 'AND' : 'OR';
if (keyword.indexOf(' ') == -1 && keyword.indexOf(',') == -1)
{
if (where == "ALL") return "BB_NAME LIKE '%"+keyword+"%' "+search_type+" BB_SUBJECT LIKE '%"+keyword+"%' "+search_type+" BB_CONTENT LIKE '%"+keyword+"%'";
else return where + " LIKE '%"+keyword+"%'";
}
else {
keyword = keyword.replace(',' , ' ')
var key_exp = keyword.split(' ');
if (where == "ALL")
{
for(i = 0; i < key_exp.length - 1; i++)
{
SQL += "(BB_NAME LIKE '%"+key_exp[i]+"%' "+search_type+" BB_SUBJECT LIKE '%"+key_exp[i]+"%' "+search_type+" BB_CONTENT LIKE '%"+key_exp[i]+"%') "+search_type+" ";
}
SQL += "(BB_NAME LIKE '%"+key_exp[i]+"%' "+search_type+" BB_SUBJECT LIKE '%"+key_exp[i]+"%' "+search_type+" BB_CONTENT LIKE '%"+key_exp[i]+"%')";
}
else {
for(i = 0; i < key_exp.length - 1; i++)
{
SQL += where + " LIKE '%"+key_exp[i]+"%' "+search_type+" ";
}
SQL += where + " LIKE '%"+key_exp[i]+"%'";
}
return SQL;
}
}
//°Ë»ö¾îüũ
function getSearchStart()
{
if(getUriString('where') && getUriString('keyword'))
{
getKeywordHighLight();
}
}
//°Ë»ö°á°ú ÇÏÀ̶óÀÌÆ®
function getKeywordHighLight()
{
var where = getUriString('where');
var keyword = getUriString('keyword');
var r,i,s=document.selection.createRange().text;
if(!where || !keyword)
{
return false;
}
keyword = keyword.replace(',' , ' ');
var keyexp = keyword.split(' ');
for ( var j = 0; j < keyexp.length; j++)
{
r = document.body.createTextRange();
for(i = 0; r.findText(keyexp[j]); i++)
{
r.execCommand('ForeColor','','#FF0000');
r.execCommand('BackColor','','#FFFF00');
r.collapse(false);
}
}
}
//Ä«Å×°í¸®¼¿·ºÆ®
function getCategoryForm(use , sbj , opt , cat , event)
{
if (use)
{
var select = "";
var option = opt.split(',');
select += "" : " CLASS='Wfield'>";
select += ""+ sbj +" ";
for (var i = 0; i < option.length; i++)
{
if (option[i])
{
if (cat == option[i])
{
select += ""+ option[i] +" ";
}
else {
select += ""+ option[i] +" ";
}
}
}
select += " ";
select += " ";
document.write(select);
}
else {
document.write(" ");
}
}
//Ä«Å×°í¸®À̺¥Æ®
function getCategoryEvent(obj)
{
location.href = getThisUrl().replace('category=' + getUriString('category') + '&' , '') + '&category=' + obj.value;
}
//ºñ°ø°³Ã¼Å©¹Ú½º
function getSecretCheck(use , que)
{
if(use == 'checked')
{
document.write(" °ü¸®ÀÚ¿¡°Ô¸¸ °ø°³ÇÕ´Ï´Ù");
}
else {
document.write(" ");
}
}
//´äº¯¸ÞÀϹ߼Ûüũ¹Ú½º
function getRemailCheck(use,email,type)
{
if (use && email && type == 'reply')
{
document.write(" ");
document.write(" À̸ÞÀÏ·Î ´äº¯¹ß¼Û");
}
}
//µî·ÏÀμ±Åü¿·ºÆ®
function getIsRootSelect(isRoot,v_LogId)
{
if (isRoot != '0' && v_LogId != '')
{
document.write("");
document.write("±Û¾´ÀÌ: »ç¿ëÀÚ·Î µî·Ï ");
document.write("±Û¾´ÀÌ: °ü¸®ÀÚ·Î µî·Ï ");
document.write(" ");
if(navigator.userAgent.indexOf('Opera') == -1 && navigator.userAgent.indexOf('MSIE') != -1)
{
getSelectToLayer(document.getElementById('writer_select'),150,'');
}
}
}
//ºñ¹Ð¹øÈ£ ÀÔ·ÂÆû(±Û¾²±â)
function getPasswdInput(wType,secret,pass,name)
{
var passinput = "";
if (wType)
{
if (wType == 'reply')
{
//´äº¯
if (secret == 'checked')
{
passinput = " ";
}
else {
passinput = " ";
}
}
else {
//¼öÁ¤
passinput = " ";
}
}
else {
//ÀϹݱÛ
passinput = " ";
}
document.write(passinput);
}
//À̸§,ÆÐ½º¿öµå ÀÔ·ÂÆû(ÄÚ¸àÆ®)
function getNameInputCmt(mbid,isroot)
{
var f = document.CommentForm;
var wperm = f.write_perm.value;
var yNull = " ";
var nNull = " ";
if (mbid != '' || isroot != '0')
{
if (wperm != '0')
{
document.write(nNull);
}
else {
document.write(yNull);
}
}
else {
if (wperm != '0')
{
document.write(" ");
document.write(" ");
}
else {
document.write(yNull);
}
}
}
//ÄÚ¸àÆ®°¹¼ö
function getCommentNum(num)
{
if (num)
{
document.write("("+num+"°³)");
}
}
//ÄÚ¸àÆ®»èÁ¦ ±ÇÇÑ
function getCommentDeletePerm(isRoot,isAdmin,v_LogId,skin,uid,rp_id,ruid)
{
var pass = (isRoot != '0' || isAdmin != '0' || (v_LogId != '' && v_LogId == rp_id)) ? 1 : 0;
document.write(" ");
}
//ÄÚ¸àÆ®»èÁ¦
function doCommentDelete(uid,ruid,pass,e)
{
if (pass == 1)
{
if (!confirm('\nÁ¤¸»·Î »èÁ¦ÇϽðڽÀ´Ï±î? \n'))
{
return false;
}
var f = document.pass_check_form;
f.table.value = getUriString('table');
f.action.value = 'cdelete';
f.uid.value = uid;
f.ruid.value = ruid;
f.p.value = getUriString('p');
f.Nparam.value = getThisUrl() + '&query=view&p=' + getUriString('p') + '&uid=' + uid;
f.submit();
}
else {
getPassLayer('cdelete',0,0,'','',uid,ruid,e);
return false;
}
}
//À̸ð¼Ç¾ÆÀÌÄÜ
function getEmotionIcon(color)
{
var icon = "";
icon += "";
icon += "";
for(var i = 1; i < 19; i++)
{
icon += " ";
}
icon += " ";
icon += "
";
document.write(icon);
}
//À̸ð¼Ç¼±ÅÃ
function getSelectEm(g,color)
{
for(var i = 1; i < 19; i++)
{
if(i == g)
{
document.getElementById('emotion_td_' + i).style.border = '1 solid gray';
document.getElementById('emotion_td_' + i).style.background = '#ffffff';
document.getElementById('emotion_img_' + i).style.filter = 'none';
document.CommentForm.RP_EMOTION.value = i;
}
else {
document.getElementById('emotion_td_' + i).style.border = '1 solid '+color;
document.getElementById('emotion_td_' + i).style.background = color;
document.getElementById('emotion_img_' + i).style.filter = 'gray()';
}
}
}
//ÄÚ¸àÆ®ÇÊµå ¸®»çÀÌÁî
function CommentLayResize(que)
{
var area = document.getElementById('CommentTextAreaLay');
var heit = parseInt(area.style.height.replace('px',''));
if (que == '-')
{
if (heit - 100 >= 60) area.style.height = heit - 100;
}
else if (que == '+')
{
if (heit + 100 <= 600) area.style.height = heit + 100;
}
else {
area.style.height = 60;
}
}
//÷ºÎÆÄÀÏ
function LayerUpfile(enable,files,table,uid,where,colnum,type)
{
if(enable)
{
var Layer_Tag = "";
var Tmp_FileNum = files.split(';');
if (Tmp_FileNum.length > 1)
{
Layer_Tag += "<IFRAME NAME='TmpFrameForDownload' WIDTH=0 HEIGHT=0 FRAMEBORDER=0 SCROLLING=0></IFRAME>";
Layer_Tag += "";
Layer_Tag += "";
Layer_Tag += "
";
}
if (type == 'write')
{
document.write(Layer_Tag);
}
else {
return Layer_Tag;
}
}
}
//¸µÅ©ÆÄÀÏ
function LayerLinkfile(enable,files,table,uid,where,colnum,type)
{
if(enable)
{
var fname;
var Layer_Tag = "";
var Tmp_FileNum = files.split(';');
if (Tmp_FileNum.length > 1)
{
Layer_Tag += "<IFRAME NAME='TmpFrameForDownload' WIDTH=0 HEIGHT=0 FRAMEBORDER=0 SCROLLING=0></IFRAME>";
Layer_Tag += "";
Layer_Tag += "";
Layer_Tag += "";
for (var i = 0; i < Tmp_FileNum.length; i++)
{
if (Tmp_FileNum[i] == "") continue;
fname = Tmp_FileNum[i];
Layer_Tag += "";
Layer_Tag += " ";
Layer_Tag += "" + getFileName(fname);
Layer_Tag += " (¸µÅ©)";
Layer_Tag += " ";
if (((i+1)%colnum) == 0)
{
Layer_Tag += " ";
}
}
Layer_Tag += " ";
Layer_Tag += "
";
Layer_Tag += "
";
}
if (type == 'write')
{
document.write(Layer_Tag);
}
else {
return Layer_Tag;
}
}
}
//----------------------------------------------------------------------------------------------
// ÆÄÀÏó¸® °ü·Ã
//----------------------------------------------------------------------------------------------
//ÆÄÀϸí
function getFileName(name)
{
var FileFullStr = name.split('?');
var FileUrliArr = FileFullStr[0].split('/');
return FileUrliArr[FileUrliArr.length - 1];
}
//ÆÄÀÏÈ®ÀåÀÚ->¾ÆÀÌÄÜ
function getFileExt(name)
{
var ExtSet = "gif,jpg,jpeg,bmp,png,swf,fla,pds,ai,tif,pcx,ppj,"; //À̹ÌÁö,Ç÷¡½¬
ExtSet += "mid,wav,mp3,"; //»ç¿îµå
ExtSet += "asf,asx,avi,mpg,mpeg,wmv,wma,ra,ram,mov,"; //樨毢
ExtSet += "doc,xls,ppt,hwp,hlp,eml,"; //¿ÀÇǽº
ExtSet += "zip,tar,trz,gz,rar,alz,"; //¾ÐÃà
ExtSet += "exe,dll,reg,ini,"; //½ÇÇà
ExtSet += "php,php3,class,java,htm,html,txt,cgi,pl,jsp,asp,xml,";//web ÃÑ53°³
var FileNameArr = name.split('.');
var ext = FileNameArr[FileNameArr.length - 1].toLowerCase()
if (ExtSet.indexOf(ext) != -1)
{
return ext;
}
else {
return "unknown";
}
}
//ÆÄÀÏ»çÀÌÁî
function getFileSize(bt , type)
{
if (type == "M")
{
var btn = parseInt(bt)/(1024*1024);
var bt_split = btn.toString().split('.');
var subnum = bt_split[1] ? '.' + bt_split[1].substring(0,2) : '';
var bt_num = commaSplit(bt_split[0]) + '.' + subnum;
return bt_num + "M";
}
if (type == "K")
{
var btn = parseInt(bt)/1024;
var bt_split = btn.toString().split('.');
var subnum = bt_split[1] ? '.' + bt_split[1].substring(0,2) : '';
var bt_num = commaSplit(bt_split[0]) + subnum;
return bt_num + "K";
}
if (type == "B")
{
return commaSplit(bt) + "B";
}
}
//½ºÅ©·¦
function Scrab(table,uid,id)
{
if (id == '')
{
alert('\nȸ¿øÀ¸·Î ·Î±×ÀÎÇØ¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. \n');
return false;
}
alert('½ºÅ©·¦ÇÏ¿´½À´Ï´Ù. ');
frames.logiframe.location.href = './bbs.php?table=' + table + '&action=scrab&uid='+uid;
}
//¸ÞÀÏ
function SendMail(table,uid)
{
window.open('./bbs.php?action=mailwin&table='+table+'&uid='+uid , 'mwin' , 'left=0,top=0,width=500,height=500');
}/****************************************************************************************
* bbs/skin/listopia_new_default/lib/skin.js
/****************************************************************************************/
/**
* ½ºÅ²Àü¿ë ÀÚ¹Ù½ºÅ©¸³Æ® ÆÄÀϸíÀº ¹Ýµå½Ã skin.js À̾î¾ß ÇÕ´Ï´Ù.
*/
/********************************************************************************************************** ¸®½ºÆ® */
//Ä«Å×°í¸®Ãâ·Â
function getPrintCategory(cat)
{
if(cat) document.write("[" + cat + "] ");
}
//¹øÈ£Ãâ·Â
function getPrintNumber(total,i,recnum,p)
{
document.write(total - (i + (recnum*(p - 1))));
}
//ºñ°ø°³Ã¼Å©
function getPrintSecretCheck(secret , skin)
{
if (secret) document.write(" ");
}
//¸®ÇöóÀÌüũ
function getPrintReplyCheck(re,skin)
{
if (re) document.write(" ");
}
/********************************************************************************************************** ³»¿ëÁ¶È¸ */
//ÆùƮȮ´ë
function FontPlus(uid)
{
var l = document.getElementById('ContentsLayer'+uid);
var nSize = l.style.fontSize ? l.style.fontSize : '9pt';
var iSize = parseInt(nSize.replace('pt',''));
if (iSize < 20)
{
l.style.fontSize = (iSize + 1) + 'pt';
l.style.lineHeight = '140%';
}
}
//ÆùÆ®Ãà¼Ò
function FontMinus(uid)
{
var l = document.getElementById('ContentsLayer'+uid);
var nSize = l.style.fontSize ? l.style.fontSize : '9pt';
var iSize = parseInt(nSize.replace('pt',''));
if (iSize > 6)
{
l.style.fontSize = (iSize - 1) + 'pt';
l.style.lineHeight = '140%';
}
}
//¹®¼Àμâ
function PagePrint(sbj,uid)
{
var img = document.getElementById('func_img'+uid);
img.style.position= 'relative';
img.style.left = 0;
img.style.top = 0;
window.open('./bbs/lib/module/print/print.htm?sbj='+escape(sbj)+'&uid='+uid,'printwin','width=650,height=600,scrollbars=yes');
}
//±â´ÉÀ̹ÌÁö
function getFuncImg(e,img)
{
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
var img = document.getElementById(img);
if (img.style.position != 'absolute')
{
img.style.position= 'absolute';
img.style.left = x;
img.style.top = y;
}
else {
img.style.position= 'relative';
img.style.left = 0;
img.style.top = 0;
}
}
/********************************************************************************************************** ±Û¾²±â */
//µ¥ÀÌÅ͵î·Ïüũ
function WriteCheck()
{
var f = document.WriteForm;
if (f.isRoot.value == "0" && f.mbid.value == "" && f.BB_NAME.value == "")
{
alert('\nÀ̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä. \n');
f.BB_NAME.focus();
return false;
}
if (f.BB_EMAIL.value)
{
if ( f.BB_EMAIL.value.length <= 6 || f.BB_EMAIL.value.indexOf ('@', 0) == -1 || f.BB_EMAIL.value.indexOf ('.', 0) == -1)
{
alert('À̸ÞÀÏÁÖ¼Ò°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù. \n');
f.BB_EMAIL.value = "";
f.BB_EMAIL.focus();
return false;
}
}
if (f.BB_SUBJECT.value == "")
{
alert('\nÁ¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä. \n');
f.BB_SUBJECT.focus();
return false;
}
if (f.is_category.value)
{
if (!f.BB_CATEGORY.value)
{
alert('\n' + f.BB_CATEGORY.options[0].text + 'À»(¸¦) ¼±ÅÃÇØ ÁÖ¼¼¿ä. \n');
f.BB_CATEGORY.focus(); //ÀϹݼ¿·ºÆ®»ç¿ë½Ã
return false;
}
}
var chk,i;
if(getEditCheck(f)) return false; //¿¡µðÅͺ»¹®Ã¼Å©
if (CheckWords(f.BB_SUBJECT.value) != '' || CheckWords(f.BB_CONTENT.value) != '')
{
alert('\n°ü¸®ÀÚ¿¡ ÀÇÇØ Á¦ÇÑµÈ ´Ü¾î°¡ »ç¿ëµÇ¾ú½À´Ï´Ù. \n');
return false;
}
if (f.BB_SECRET.checked == true)
{
if (f.BB_PASS.value == "")
{
alert('\nºñ°ø°³±Û·Î µî·ÏÇÒ °æ¿ì¿¡´Â ¹Ýµå½Ã ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù. \n');
f.BB_PASS.focus();
return false;
}
}
if (f.useup.value != '0')
{
f.BB_FILE.value = getUploadFiles(); //¾÷·Îµåüũ
}
if (f.uselk.value != '0')
{
f.BB_LINK.value = getLinkFiles(); //¸µÅ©Ã¼Å©
}
f.Nparam.value = NparamSetting();
}
//¿É¼ÇÃâ·Âüũ
function OptionCheck()
{
var home = document.getElementById('Option_Url');
var prev = document.getElementById('Option_Preview');
var img = document.getElementById('Option_Img');
var f = document.WriteForm;
if(!f.mbid.value)
{
if (home.style.display == 'none') { home.style.display = 'block'; } else { home.style.display = 'none'; }
}
if (prev.style.display == 'none') { prev.style.display = 'block'; } else { prev.style.display = 'none'; }
if (img.src.indexOf('dot_option.gif') != -1)
{
img.src = img.src.replace('dot_option.gif','dot_option1.gif');
}
else {
img.src = img.src.replace('dot_option1.gif','dot_option.gif');
}
}
//À̵¿°æ·Îüũ
function NparamSetting()
{
var pam = getThisUrl();
pam += '&query=' + getUriString('query');
pam += '&write_type=' + getUriString('write_type');
pam += '&uid=' + getUriString('uid');
pam += '&p=' + getUriString('p');
return pam;
}
/********************************************************************************************************** ¸ÖƼüũ */
var Multi_Check_Uid = '';
function Multi_Check(obj,e,skindir,isRoot,isAdmin)
{
var ml = document.getElementById('MultiCheckLayer');
var tg = '';
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
x += 10; y -= 20;
if (obj.checked == true) Multi_Check_Uid += obj.value + ';';
else Multi_Check_Uid = Multi_Check_Uid.replace(obj.value + ';' , '');
if (Multi_Check_Uid)
{
var multiarr = Multi_Check_Uid.split(';');
tg += "";
tg += "";
tg += " ";
tg += " ";
tg += " ";
tg += " ";
tg += "";
tg += " ";
if(isRoot != 0 || isAdmin != 0)
{
tg += " ";
if (isRoot != 0)
{
tg += " ";
tg += " ";
}
}
if(isRoot == 0 && isAdmin == 0)
{
tg += "(¼±ÅÃµÈ ÀÚ·á : "+(multiarr.length-1)+") ";
}
tg += " ";
tg += "
";
ml.innerHTML = tg;
}
else {
ml.innerHTML = '';
}
}
function Multi_Check_Que(n)
{
var i;
var l = document.getElementsByName('At[]');
switch (n)
{
case 1 :
Multi_Check_Uid = '';
for ( i = 0; i < l.length; i++)
{
l[i].checked = true;
Multi_Check_Uid += l[i].value + ';';
}
break;
case 2 :
Multi_Check_Uid = '';
for ( i = 0; i < l.length; i++)
{
l[i].checked = false;
Multi_Check_Uid = Multi_Check_Uid.replace(l[i].value + ';' , '');
}
break;
case 3 :
Multi_Check_Uid = '';
for ( i = 0; i < l.length; i++)
{
if(l[i].checked == true)
{
l[i].checked = false;
Multi_Check_Uid = Multi_Check_Uid.replace(l[i].value + ';' , '');
}
else {
l[i].checked = true;
Multi_Check_Uid += l[i].value + ';';
}
}
break;
case 4 :
if (!Multi_Check_Uid) return false;
location.href = getThisUrl() + '&query=multi&p=' + getUriString('p') + '&MultiUid=' + Multi_Check_Uid;
break;
case 5 :
if (!Multi_Check_Uid) return false;
if (!confirm('»èÁ¦µÈ µ¥ÀÌÅÍ´Â º¹±¸°¡ ºÒ°¡´ÉÇÕ´Ï´Ù. \n\nÁ¤¸»·Î »èÁ¦ÇϽðڽÀ´Ï±î?')) return false;
location.href = getThisUrl() + '&action=multi_delete&p=' + getUriString('p') + '&MultiUid=' + Multi_Check_Uid;
break;
case 6 :
if (!Multi_Check_Uid) return false;
window.open('./bbs/lib/module/mvcopy/mvcopy.php?table='+getUriString('table')+'&type=move&MultiUid='+Multi_Check_Uid,'mvcopywin','left=0,top=0,width=300,height=450');
break;
case 7 :
if (!Multi_Check_Uid) return false;
window.open('./bbs/lib/module/mvcopy/mvcopy.php?table='+getUriString('table')+'&type=copy&MultiUid='+Multi_Check_Uid,'mvcopywin','left=0,top=0,width=300,height=450');
break;
}
}
/********************************************************************************************************** ÄÚ¸àÆ® */
//ÄÚ¸àÆ®µî·Ï üũ
function CommentCheck(f)
{
if (f.write_perm.value == '0')
{
alert('Á˼ÛÇÕ´Ï´Ù. Àǰߵî·Ï ±ÇÇÑÀÌ ¾ø½À´Ï´Ù. ');
f.RP_CONTENT.disabled = true;
f.RP_CONTENT.style.background = '#EFEFEF';
return false;
}
if (f.RP_CONTENT.value == "")
{
alert('ÀǰßÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ');
f.RP_CONTENT.focus();
return false;
}
if (CheckWords(f.RP_CONTENT.value) != '')
{
alert('\n°ü¸®ÀÚ¿¡ ÀÇÇØ Á¦ÇÑµÈ ´Ü¾î°¡ »ç¿ëµÇ¾ú½À´Ï´Ù. \n');
return false;
}
if (!f.RP_NAME.value || f.RP_NAME.value == 'À̸§' )
{
alert('À̸§ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ');
f.RP_NAME.focus();
return false;
}
if (!f.isPass.value)
{
if (!f.RP_PASS.value || f.RP_PASS.value == 'ºñ¹Ð¹øÈ£')
{
if (!confirm('\nºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏÁö ¾ÊÀ¸½Ã¸é »èÁ¦°¡ ºÒ°¡´ÉÇÕ´Ï´Ù. \n\nºñ¹Ð¹øÈ£ ÀԷ¾øÀÌ µî·ÏÇϽðڽÀ´Ï±î?\n'))
{
f.RP_PASS.focus();
return false;
}
}
}
if (!confirm('\nÀÔ·ÂÇϽŠÄÚ¸àÆ®¸¦ µî·ÏÇϽðڽÀ´Ï±î? \n'))
{
return false;
}
if (f.useup.value != '0')
{
f.RP_FILE.value = getUploadFiles();
}
if (f.uselink.value != '0')
{
f.RP_LINK.value = getLinkFiles();
}
f.Nparam.value = getThisUrl() + '&query=view&uid=' + getUriString('uid') + '&p=' + getUriString('p');
}
//ÄÚ¸àÆ®Á¡¼ö¼±Åà Ãâ·Â
function getCommentVote(use)
{
if (use)
{
var tag = "";
tag += "";
tag += " Æò°¡Á¡¼ö : ";
tag += "¡Ú¡Ú¡Ú¡Ú¡Ú ";
tag += "¡Ú¡Ú¡Ú¡Ú¡Ù ";
tag += "¡Ú¡Ú¡Ú¡Ú ";
tag += "¡Ú¡Ú¡Ú¡Ù ";
tag += "¡Ú¡Ú¡Ú ";
tag += "¡Ú¡Ú¡Ù ";
tag += "¡Ú¡Ú ";
tag += "¡Ú¡Ù ";
tag += "¡Ú ";
tag += "¡Ù ";
tag += " ";
document.write(tag);
if(navigator.userAgent.indexOf('Opera') == -1 && navigator.userAgent.indexOf('Netscape') == -1)
{
getSelectToLayer(document.getElementById('RP_VOTE'),100,'');
}
}
}
//ÄÚ¸àÆ®ºñÀúºí
function getCommentVisible(obj)
{
var l = document.getElementById('Comment_Layer');
if(obj.src.indexOf('_show.gif') != -1)
{
obj.src = obj.src.replace('_show.gif', '_hide.gif');
l.style.display = 'block';
}
else
{
obj.src = obj.src.replace('_hide.gif', '_show.gif');
l.style.display = 'none';
}
}
//ÄÚ¸àÆ®µî·Ï±ÇÇÑ Ã¼Å©-ºñ±ÇÇÑ-> display : none
function CommentWritePermCheck()
{
var f = document.CommentForm;
var l = document.getElementById('CommentTable');
if (f.write_perm.value == '0')
{
l.style.display = 'none';
}
else{
l.style.display = 'block';
}
}
function getCWriteVisible(id)
{
if (id == '')
{
alert('·Î±×ÀÎÇØ ÁÖ¼¼¿ä. ');
return false;
}
var l = document.getElementById('CommentWriteTbl');
if(l.style.display == 'none')
{
l.style.display = 'block';
}
else
{
l.style.display = 'none';
}
}
//ÄÚ¸àÆ® À¥¿¡µðÅ͸µÅ©Ãâ·Âüũ
function getCommentEditLink(op,skinimg)
{
if (op)
{
document.write("");
document.write("[¿¡µðÅÍ] ");
}
}
/********************************************************************************************************** ÷ºÎ,¸µÅ© ÆÄÀÏ */
//ÆÄÀÏ÷ºÎüũ
function getUpfileNumIcon(enable , files , num , down , table, uid, skin , link , where , cols)
{
if (num > 0)
{
var string = "";
string += "";
string += " ÷ºÎÆÄÀÏ " + num + " °³ ";
string += "(´Ù¿î·Îµå "+commaSplit(down)+" °Ç) ";
string += "
";
document.write(string);
}
}
//ÆÄÀÏ·¹À̾î show
function showLayerUpfile(enable , files , table , uid , where , cols , num , link , skin , down , e)
{
if (!enable)
{
alert('Á˼ÛÇÕ´Ï´Ù. ´Ù¿î·Îµå ±ÇÇÑÀÌ ¾ø½À´Ï´Ù. ');
return false;
}
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
var to = "";
var tl = document.getElementById('tmp_Upfile_Show_Layer');
var ly = LayerUpfile(enable , files + link , table, uid , where , cols , 'return');
var wt = parseInt(num/cols) > 0 ? cols * 220 : (num%cols) * 220;
wt = num == 1 ? 270 : wt;
tl.style.position = 'absolute';
tl.style.left = x;
tl.style.top = y;
to += "";
to += " ";
to += " ";
to += "";
to += " ÷ºÎÆÄÀÏ " + num + " °³ ";
to += "(´Ù¿î·Îµå "+commaSplit(down)+" °Ç) ";
to += " ´Ý±â ";
to += " ";
to += " ";
to += "" + ly + " ";
to += "
";
tl.innerHTML = to;
document.getElementById('upFile_Tmp_Layer').style.background = '#F5F3F5';
document.getElementById('upFile_Tmp_Layer').style.width = '100%';
}
//ÆÄÀÏ·¹À̾î Á¦°Å
function hideLayerUpfile()
{
document.getElementById('tmp_Upfile_Show_Layer').innerHTML = "";
}
//̵̧
function putReq(table,uid)
{
if (!confirm('Á¤¸»·Î ÃßõÇϽðڽÀ´Ï±î? '))
{
return false;
}
frames.requestframe.location.href = './bbs.php?table=' + table + '&action=request&uid='+uid;
}</scRIPT>
<scRIPT language=javascript>
/****************************************************************************************
* ./lib/js/init.js
/****************************************************************************************/
//½ºÆ®¸µ ²÷±â
function getCutString(str,num,ss)
{
return str.substring(0,num) + ss;
}
//ŸÀÔºñ±³ (ºñ±³¹®ÀÚ , ºñ±³Çü½Ä ; ex: getTypeCheck(string , "1234567890") )
function getTypeCheck (s, spc)
{
var i;
for(i=0; i< s.length; i++)
{
if (spc.indexOf(s.substring(i, i+1)) < 0)
{
return false;
}
}
return true;
}
//ÄÞ¸¶»ðÀÔ (number_format)
function commaSplit(srcNumber)
{
var txtNumber = '' + srcNumber;
var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
var arrNumber = txtNumber.split('.');
arrNumber[0] += '.';
do {
arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
}
while (rxSplit.test(arrNumber[0]));
if (arrNumber.length > 1) {
return arrNumber.join('');
}
else {
return arrNumber[0].split('.')[0];
}
}
//ÄÞ¸¶Á¦°Å
function filterNum(str)
{
re = /^\$|,/g;
return str.replace(re, "");
}
//³¯Â¥format - getDateFormat('20040605121212' , 'xxxx-xx-xx [xx:xx:xx]');
function getDateFormat(date , type)
{
var ck;
var rtstr = "";
var j = 0;
for(var i = 0; i < type.length; i++)
{
if(type.substring(i,i+1) == 'x')
{
rtstr += date.substring(j,j+1);
}
else {
j--;
rtstr += type.substring(i,i+1);
}
j++;
}
document.write(rtstr);
}
//´Ü¾î ÇÊÅ͸µ
function CheckWords(words)
{
if(words.length < 1) return '';
var BadWordSet = frames.WordFilterFrame.document.body.innerHTML;
var BadWordArr = BadWordSet.split(',');
var BadWordNum = BadWordArr.length;
for (var i = 0; i < BadWordNum; i++)
{
if(words.indexOf(BadWordArr[i]) != -1) return BadWordArr[i];
}
return '';
}
//ÆäÀÌ¡ó¸®
function getPageLink1(lnum,p,tpage,imgpath)
{
var g_p1 = " ";
var g_p2 = " ";
var g_n1 = " ";
var g_n2 = " ";
var g_cn = " ";
var g_q = "";
if(p < lnum+1) { g_q += g_p1; }
else{ var pp = parseInt((p-1)/lnum)*lnum; g_q += ""+g_p2+" ";} g_q += g_cn;
var st1 = parseInt((p-1)/lnum)*lnum + 1;
var st2 = st1 + lnum;
for(var jn = st1; jn < st2; jn++)
if ( jn <= tpage)
(jn == p)? g_q += ""+jn+" "+g_cn : g_q += ""+jn+" "+g_cn;
if(tpage < lnum || tpage < jn) { g_q += g_n1; }
else{var np = jn; g_q += ""+g_n2+" "; }
document.write(g_q);
}
//ÆäÀÌÁöŬ¸¯
function getPageGo1(n)
{
var p = getUriString1('p');
var que = location.href.replace('&p='+p,'');
que = que.indexOf('?') != -1 ? que : que + '?';
location.href= que + '&p=' + n;
}
//ÆÄ¶ó¹ÌÅͰª
function getUriString1(param)
{
var QuerySplit = location.href.split('?');
var ResultQuer = QuerySplit[1] ? QuerySplit[1].split('&') : '';
for (var i = 0; i < ResultQuer.length; i++)
{
var keyval = ResultQuer[i].split('=');
if (param == keyval[0]) return keyval[1];
}
return "";
}
function outCheck()
{
if (!confirm('Á¤¸»·Î Å»ÅðÇϽðڽÀ´Ï±î?\n\n[È®ÀÎ]À» Ŭ¸¯Çϸé ÀçÈ®ÀÎ ¾øÀÌ Å»Åð󸮵˴ϴÙ. '))
{
return false;
}
}
function showGoodsPic(uid)
{
window.open('./lib/module/picview/view.php?uid=' + uid,'picwin','left=0,top=0,width=720,height=555,scrollbars=no');
}
function showGroupPic(uid)
{
window.open('./lib/module/picview/gview.php?uid=' + uid,'picwin','left=0,top=0,width=720,height=555,scrollbars=no');
}
function showAuctionPic(uid)
{
window.open('./lib/module/picview/aview.php?uid=' + uid,'picwin','left=0,top=0,width=720,height=555,scrollbars=no');
}
function wishCheck(id)
{
if(id == '')
{
alert('ȸ¿øÀ¸·Î ·Î±×ÀÎÇØ ÁÖ¼¼¿ä. ');
return false;
}
if (!confirm('Á¤¸»·Î À§½Ã¸®½ºÆ®¿¡ ´ãÀ¸½Ã°Ú½À´Ï±î? '))
{
return false;
}
}
function showSearchWin(skin)
{
window.open('./template/search/'+skin+'/search.php','searchwin','left=0,top=0,width=457,height=360,scrollbars=no');
}
function GoodsExplorer()
{
window.open('./lib/module/explorer/explorer.php','explorer','left=0,top=0,width=800,height=680,status=yes,scrollbars=no');
}
function getBlink(str,lay)
{
var c = document.getElementById(lay);
if(c.innerHTML == '') c.innerHTML = str;
if(c.style.visibility == 'visible') { c.style.visibility = 'hidden'; }
else { c.style.visibility = 'visible'; }
setTimeout("getBlink('"+str+"','"+lay+"');" , 500);
}
/****************************************************************************************
* ./lib/js/user.js
/****************************************************************************************/
var klayer_flag=0;
var KimsUserName;
var KimsUserUrl;
var KimsUserId;
var KimsMyId;
//·çÆ® ·¹À̾î»ý¼º
function getRootLayer(table,e)
{
var imgpath = "./image/idl";
var T = "";
var L = document.getElementById('UserIdLayer');
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
klayer_flag = 1;
KimsUserName = '°ü¸®ÀÚ';
KimsUserId = 'root';
T += "";
T += "";
T += " ¸ÞÀÏ º¸³»±â ";
T += " ÂÊÁö º¸³»±â ";
if (table ) T += " µî·Ï±Û °Ë»ö ";
T += "
";
T += " ";
L.innerHTML = T;
L.style.top = y;
L.style.left = x + 10;
L.style.display = 'block';
document.getElementById('UserTableFocusField').focus();
}
//Writer ·¹À̾î»ý¼º
function getUserIdLayer(user_name,user_id,home_url,friend_type,table,myid,e)
{
var imgpath = "./image/idl";
var T = "";
var L = document.getElementById('UserIdLayer');
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
klayer_flag = 1;
KimsUserName = user_name
KimsUserUrl = home_url;
KimsUserId = user_id;
KimsMyId = myid;
T += "<iframe name='kimsidlayerframe' width=0 height=0 frameborder=0 scrolling=0></iframe>";
T += "";
T += "";
T += " »ç¿ëÀÚ Á¤º¸ ";
T += " ¸ÞÀÏ º¸³»±â ";
T += " ÂÊÁö º¸³»±â ";
if (home_url != '') T += " ȨÆäÀÌÁö ¹æ¹® ";
if (friend_type != 'me')
{
if(friend_type == '') T += " Ä£±¸·Î µî·Ï ";
if(friend_type == 'friend') T += " Ä£±¸¿¡¼ Á¦¿Ü ";
if(friend_type == '') T += " ºí·¢¸Ç µî·Ï ";
if(friend_type == 'black') T += " ºíÆÑ¸Ç¿¡¼ Á¦¿Ü ";
}
if(table ) T += " µî·Ï±Û °Ë»ö ";
T += "
";
T += " ";
L.innerHTML = T;
L.style.top = y;
L.style.left = x + 10;
L.style.display = 'block';
document.getElementById('UserTableFocusField').focus();
}
function getRootQue(que)
{
switch (que)
{
case 'mail' :
getUserPaperWin('','mail');
break;
case 'msg' :
getUserPaperWin('','send');
break;
case 'search' :
break;
}
}
//¿äû
function getIdQueToMember(que)
{
switch (que)
{
case 'info' :
getUserInfoWin(KimsUserId,'main');
break;
case 'mail' :
getUserPaperWin(KimsUserId,'mail');
break;
case 'msg' :
getUserPaperWin(KimsUserId,'send');
break;
case 'home' :
if(KimsUserUrl != '') window.open(KimsUserUrl);
else alert('ȨÆäÀÌÁö°¡ µî·ÏµÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù. ');
break;
case 'friend_Y' :
if (!confirm('Á¤¸»·Î Ä£±¸·Î µî·ÏÇϽðڽÀ´Ï±î? '))
{
return false;
}
getUserAction(KimsUserId,'friend_in','friend');
break;
case 'black_Y' :
if (!confirm('Á¤¸»·Î ºí·¢¸®½ºÆ®¿¡ µî·ÏÇϽðڽÀ´Ï±î? '))
{
return false;
}
getUserAction(KimsUserId,'friend_in','black');
break;
case 'friend_N' :
if (!confirm('Á¤¸»·Î Ä£±¸¿¡¼ Á¦¿ÜÇϽðڽÀ´Ï±î? '))
{
return false;
}
getUserAction(KimsUserId,'friend_out','friend');
break;
case 'black_N' :
if (!confirm('Á¤¸»·Î ºí·¢¸®½ºÆ®¿¡¼ Á¦¿ÜÇϽðڽÀ´Ï±î? '))
{
return false;
}
getUserAction(KimsUserId,'friend_out','black');
break;
case 'search' :
if (KimsUserId != '')
{
document.DataForm.where.value = 'BB_MB_ID';
document.DataForm.keyword.value = KimsUserId;
}
else {
document.DataForm.where.value = 'BB_NAME';
document.DataForm.keyword.value = KimsUserName;
}
location.href = getThisUrl();
break;
}
}
//¸¶¿ì½º¿À¹ö
function getIdTrOver(obj)
{
obj.style.background = '#225588';
obj.style.color = '#EFEFEF';
}
//¸¶¿ì½º¾Æ¿ô
function getIdTrOut(obj)
{
obj.style.background = '#EFEFEF';
obj.style.color = '#000000';
}
//BlurAct
function getUserIdLayerBlur()
{
klayer_flag = 0;
setTimeout("getUserIdLayerBlurQ(document.getElementById('UserIdTable'))" , 150);
}
//BlurQue
function getUserIdLayerBlurQ(obj)
{
if (klayer_flag) return false;
document.getElementById('UserIdLayer').innerHTML = "";
klayer_flag = 0;
KimsUserName = ''
KimsUserUrl = '';
KimsUserId = '';
KimsMyId = '';
obj.style.left = 0;
obj.style.top = 0;
obj.style.display = 'none';
}
function getUserInfoWin(hisid,query)
{
window.open('./lib/module/member/member.php?query='+query+'&id='+hisid , 'userwin' , 'left=0,top=0,width=480,height=455');
}
function getUserPaperWin(hisid,query)
{
window.open('./lib/module/paper/paper.php?query='+query+'&id='+hisid,'msgwin','left=0,top=0,width=435,height=310');
}
function getUserAction(hisid,action,type)
{
frames.kimsidlayerframe.location.href = './lib/module/member/member.php?action='+action+'&id='+hisid+'&type='+type+'&stop=1';
setTimeout("location.reload();" , 100);
}/****************************************************************************************
* ./lib/js/select.js
/****************************************************************************************/
//SELECT -> LAYERº¯È¯
function getSelectToLayer(obj,lwidth,href)
{
if(navigator.userAgent.indexOf('Opera') != -1 || navigator.userAgent.indexOf('MSIE') == -1) { return false; }
obj.style.display = 'none';
var newsb = obj.id + "_sbj";
var newid = obj.id + "_tmp";
var newim = obj.id + "_img";
var LayerTag = "";
LayerTag += "";
LayerTag += "";
LayerTag += "";
LayerTag += "";
LayerTag += " " + obj.options[obj.selectedIndex].text + " ";
LayerTag += " ";
LayerTag += "
";
LayerTag += "";
for (var i = 0 ; i < obj.length; i++)
{
LayerTag += " ";
}
else {
LayerTag += "STYLE='background:#FFFFFF;color:#000000;'> ";
}
LayerTag += obj.options[i].text;
LayerTag += " ";
}
LayerTag += "
";
LayerTag += "
";
document.write(LayerTag);
}
//¼ºê·¹À̾À̱â
function getSelectSubLayer(obj,sobj)
{
if(obj.style.display == 'none')
{
sobj.style.background = '#FFFFFF';
sobj.style.color = '#000000';
obj.style.display = 'block';
NowSelectedLayer = obj;
obj.focus();
}
else {
sobj.style.background = '#225588';
sobj.style.color = '#FFFFFF';
obj.style.display = 'none';
}
}
//¼ºê·¹À̾îüũ
function getSelectSubLayer1(obj)
{
if(obj.style.display != 'none')
{
obj.style.display = 'none';
}
}
//ŸÀÌÆ²·¹À̾î MouseOver
function getSelectLayerOver(obj,img,nobj)
{
if (nobj.style.display == 'none')
{
obj.style.border = '1 solid #225588';
img.style.filter = '';
}
}
//ŸÀÌÆ²·¹À̾î MouseOut
function getSelectLayerOut(obj,img)
{
obj.style.border = '1 solid #C0C0C0';
img.style.filter = 'gray()';
}
//¼ºê·¹À̾î MouseOver
function getSelectMoveLayer(obj)
{
if (obj.style.color == '#000000')
{
obj.style.background = '#225588';
obj.style.color = '#FFFFFF';
}
}
//¼ºê·¹À̾î MouseOut
function getSelectMoveLayer1(obj)
{
obj.style.background = '#FFFFFF';
obj.style.color = '#000000';
}
//»õ·¹À̾ÅÃ
function getSelectChangeLayer(obj,fobj,sobj,text,value,href)
{
if (href)
{
eval("document.DataForm." + href).value = value;
location.href = getThisUrl();
return false;
}
else {
fobj.style.display = 'none';
sobj.innerHTML = ' ' + text;
sobj.style.background = '#225588';
sobj.style.color = '#FFFFFF';
sobj.focus();
obj.value = value;
}
/*
if (href)
{
if (href.indexOf('submit()') != -1)
{
eval(href);
}
else {
location.href = href + value;
}
return false;
}
*/
}
//ŸÀÌÆ²·¹À̾î blur
function getSelectLayerBlur(obj)
{
obj.style.background = '#FFFFFF';
obj.style.color = '#000000';
}
//¼ºê·¹ÀÌ¾î ´Ý±â
function getSubLayerClose(obj)
{
if (obj.style.display != 'none')
{
setTimeout("document.getElementById('" + obj.id + "').style.display = 'none';" , 150);
}
}
</scRIPT>
¹Ìµð¾îÇ÷¹À̾¼ µ¿¿µ»óÀÌ ¾È³ª¿Ã°æ¿ì Á¶Ä¡¹ý
<scRIPT>getUpfileNumIcon(0,'',1,0,'news_notice',12,'listopia_new_default','','dat',2);</scRIPT>
÷ºÎÆÄÀÏ 1 °³ (´Ù¿î·Îµå 0 °Ç)
±³È¸·Î´åÄÄ , µî·ÏÀÏ :
<scRIPT>getDateFormat('20060529090605' , 'xxxx.xx.xx ');</scRIPT>
2006.05.29 <09:06> , Á¶È¸ : 30