var old_menu = '';
function ShowHide(submenu)
{
if(old_menu != submenu)
{
if( old_menu !='' )
{
document.all(submenu).style.display = 'none';
}
document.all(submenu).style.display = '';
old_menu = submenu;
}
else
{
document.all(submenu).style.display = 'none';
old_menu = '';
}
}
function CommentRemove(no,form)
{
nWin = window.open('/Testing/comment_process.php?psMode=REMOVE&no='+no+'&frm_name='+form,'CommentRemoveWindow','width=100 height=100 top=0');
}
function Comment(category, no, d)
{
var rnd = Math.round(Math.random()*1000000);
View = document.createElement("script");
View.src = '/Testing/comment_process.php?psMode=LIST&nCategoryID='+category+'&no='+no+'&d='+d+'&rnd='+rnd;
document.body.appendChild(View);
ShowHide('CommentWrite_'+d);
}
function CommentInsert(no, d, category)
{
var rnd = Math.round(Math.random()*1000000);
var content = document.forms['frm_write_'+d].elements['sComment'].value;
append = '?psMode=WRITE&no='+no+'&content='+content+'&nCategoryID='+category+'&d='+d+'&rnd='+rnd;
View = document.createElement("script");
View.src = '/Testing/comment_process.php'+append;
document.body.appendChild(View);
document.forms['frm_write_'+d].elements['sComment'].value='';
}
function CommentDelete(no, delno, d)
{
if(confirm('\n삭제하시겠습니까?\n\n삭제를 하시면복구가 불가능합니다.\n'))
{
append = '?psMode=REMOVE&no='+no+'&delno='+delno+'&d='+d;
View = document.createElement("script");
View.src = '/Testing/comment_process.php'+append;
document.body.appendChild(View);
}
}
function ShowHide(submenu)
{
if(old_menu != submenu)
{
if( old_menu !='' )
{
document.all(submenu).style.display = 'none';
}
document.all(submenu).style.display = '';
old_menu = submenu;
}
else
{
document.all(submenu).style.display = 'none';
old_menu = '';
}
}
function CommentRemove(no,form)
{
nWin = window.open('/Testing/comment_process.php?psMode=REMOVE&no='+no+'&frm_name='+form,'CommentRemoveWindow','width=100 height=100 top=0');
}
function Comment(category, no, d)
{
var rnd = Math.round(Math.random()*1000000);
View = document.createElement("script");
View.src = '/Testing/comment_process.php?psMode=LIST&nCategoryID='+category+'&no='+no+'&d='+d+'&rnd='+rnd;
document.body.appendChild(View);
ShowHide('CommentWrite_'+d);
}
function CommentInsert(no, d, category)
{
var rnd = Math.round(Math.random()*1000000);
var content = document.forms['frm_write_'+d].elements['sComment'].value;
append = '?psMode=WRITE&no='+no+'&content='+content+'&nCategoryID='+category+'&d='+d+'&rnd='+rnd;
View = document.createElement("script");
View.src = '/Testing/comment_process.php'+append;
document.body.appendChild(View);
document.forms['frm_write_'+d].elements['sComment'].value='';
}
function CommentDelete(no, delno, d)
{
if(confirm('\n삭제하시겠습니까?\n\n삭제를 하시면복구가 불가능합니다.\n'))
{
append = '?psMode=REMOVE&no='+no+'&delno='+delno+'&d='+d;
View = document.createElement("script");
View.src = '/Testing/comment_process.php'+append;
document.body.appendChild(View);
}
}
'Web > Javascript' 카테고리의 다른 글
2차 완성된 DHTML 을 이용한 클라이언트 스크립트로 Element 생성 (0) | 2013.09.26 |
---|---|
주민번호 다음 form으로 이동 (0) | 2013.09.26 |
1차 완성된 DHTML 을 이용한 클라이언트 스크립트로 Element 생성 (0) | 2013.09.26 |
DHTML 을 이용한 클라이언트 스크립트로 Element 생성의 가능성 (0) | 2013.09.26 |
for(var j in _options) (0) | 2013.09.26 |