File name: welboard2/jscss/board.js (1,398 bytes) Text file viewer v1.2
    1 : // start: board.js
    2 : 
    3 : var mover_color, com_argument, now_page, before_page;
    4 : 
    5 : function mover(id) { id.style.background= mover_color; }
    6 : function mout(id,bgc) { id.style.background= bgc; }
    7 : 
    8 : function go(action,argument)
    9 :  {
   10 :     url= "go.wel?g=" + action + "&" + com_argument;
   11 :     if(argument!="") url+= "&" + argument;
   12 :     location.href= url;
   13 :     return;
   14 :  }
   15 : 
   16 : function goselected(sel)
   17 :  {
   18 :    if(sel.options[sel.selectedIndex].value!="")
   19 :     {
   20 :        go("board", "sk="+sel.options[sel.selectedIndex].value);
   21 :     }
   22 :  }
   23 : 
   24 : function store_bp()
   25 :  {
   26 :     if(document.search.bp.value=="") document.search.bp.value= now_page;
   27 :  }
   28 : 
   29 : function gopage(page)
   30 :  {
   31 :     if(page>=1) go("board", "pg=" + page);
   32 :  }
   33 : 
   34 : function goview(selno, virtual_no)
   35 :  {
   36 :     go("view","no="+selno+"&vn="+virtual_no);
   37 :  }
   38 : 
   39 : function gobefore() { go("board", "k=&pg="+before_page+"&bp="); }
   40 : function gowrite() { go("write",""); }
   41 : function goboardcfg() { go("boardcfg",""); }
   42 : 
   43 : function godel(selno,virtual_no)
   44 :  {
   45 :     var msg= virtual_no + "번(등록번호 " + selno + "번)의 게시물을 삭제합니다."
   46 :            + "  계속하시겠습니까?";
   47 : 
   48 :     if(confirm(msg)==true) go("delete", "no="+selno);
   49 :  }
   50 : 
   51 : function godown(selno)
   52 :  {
   53 :    location.href="download.wel?"+com_argument+"&no="+selno;
   54 :  }
   55 : 
   56 : function gologin() { go("login",""); }
   57 : function gologout() { go("logout",""); }
   58 : 
   59 : function gomail(name, email)
   60 :  {
   61 :     go("mail", "lc=board&to="+email+"&toname="+name);
   62 :  }
   63 : 
   64 : // end
File name: welboard2/jscss/board.js (1,398 bytes) Wesoft Corp. ⓒ 2001 All rights reserved.