JAKARTAPROJECT
JAKARTA TIPJSP TIPJSP Áú¹®&´äº¯DATABASE TIPJAVASCRIPT TIPWEBHACKING TIP±âŸ TIP
ÀÚ¹Ù½ºÅ©¸³Æ® ÆÁ
ÀÚ¹Ù½ºÅ©¸³Æ® ÆÁ
ÀÚ¹Ù½ºÅ©¸³Æ® ¹× CSS ÆÁ °Ô½ÃÆÇÀÔ´Ï´Ù
¿¢¼¿Ã³·³ TD »çÀÌÁî Á¶ÀýÇϱâ!
GoodBug
À̹ÌÁö ½½¶óÀÌ´õ º¸±â

phpschoolÀÇ kisses´ÔÀÇ ±ÛÀÔ´Ï´Ù

Á¤¸» ¾µ¸¸ÇÑ TipÀÔ´Ï´Ù

http://www.phpschool.com/bbs2/inc_view.html?id=11601&code=tnt2&start=150&mode=&field=&search_name=&operator=&period=&category_id=&s_que=

====================================================

»ç¿ë¹ýÀº Á¦¸ñºÎºÐÀÇ Ä­ »çÀÌ¿¡ ¸¶¿ì½º¸¦ °¡±îÀÌ Çϸé
Ä¿¼­ ¸ð¾çÀÌ ¹Ù²ò´Ï´Ù. ±×¶§ µå·¡±×¸¦ ÇÏ¸é ¸¶¿ì½º°¡ À̵¿ÇÑ
°Å¸®¸¸Å­ ¼¿ÀÇ Å©±â°¡ ¹Ù²ò´Ï´Ù.
Á¦¸ñ ºÎºÐÀÇ Å¬·¹½º À̸§Àº ¹Ýµå½Ã Àû¾î ÁÖ¼Å¾ß ÇÕ´Ï´Ù.
¼¿ÀÇ »çÀÌÁî°¡ º¯ÇÔ¿¡ µû¶ó input ¹Ú½ºµµ ´Þ¶óÁý´Ï´Ù...
±×·¯³ª »çÀÌÁî°¡ º¯ÇÏ´Â input ¹Ú½º¸¦ ³²¹ß ÇÏ¸é ¹ÝÀÀ ¼Óµµ°¡
´À·ÁÁý´Ï´Ù. ¶ÇÇÑ input ¹Ú½ºÀÇ »çÀÌÁî´Â tdÀÇ cellpadding º¸´Ù
ÀÛ¾Æ¾ß ÇÕ´Ï´Ù.

ÁÖ¼®À» ´Þ¾Æ ³ùÀ¸´Ï ÀÌÇØÇϽôµ¥´Â º° ¾î·Á¿òÀÌ ¾øÀ»°Å¶ó »ý°¢ µË´Ï´Ù.

Å×À̺íÀ» <div> Å×±× ¾È¿¡ ³ÖÁö ¾ÊÀ¸½Ã·Á¸é Å×À̺í ÀÚüÀÇ
»çÀÌÁî´Â ÁöÁ¤ÇØ ÁÖ½Ã¸é ¾ÈµË´Ï´Ù. (td)¸¸ ÁöÁ¤Çϼ¼¿ä

¸»ÁÙÀÓÇ¥ È¿°ú´Â Àü¿¡ ½ºÄð¿¡¼­ º»°É·Î ±¸ÇöÇØ º¸¾Ò½À´Ï´Ù.

 

<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=euc-kr">

<style>
.ellipsis  {font:9pt "±¼¸²"; width:100%; overflow:hidden; text-overflow:ellipsis; text-align:left; }
.colresize {font:9pt "±¼¸²"; cursor:""; }
.input_box {width:expression(this.parentNode.clientWidth-8); }
</style>

<SCRIPT LANGUAGE="JavaScript">
<!--
var mousedown = false; //¸¶¿ì½º¸¦ ´©¸¥ »óÅÂ
var td = "";           //»çÀÌÁî º¯°æÇÒ td
var td_width;          //º¯°æÇÒ tdÀÇ width,
var x = 0;             //¸¶¿ì½º µå·¹±×Àü °¡·ÎÀ§Ä¡

function TCstartColResize(obj){
       mousedown = true;
       td = obj;
       td_width = td.width;
       x = event.clientX;
}
function TCColResize()
{
       if (mousedown){
              var distX = event.x - x; //À̵¿ÇÑ °£°Ý
              td.width = parseInt(td_width) + parseInt(distX);
       }
}
function TCstopColResize(){
       mousedown = false;
       td = '';
}

function cell_left(obj){//¸¶¿ì½º°¡ ¼¿ÀÇ ¿ÞÂÊÀÎÁö ÃøÁ¤
       if(event.offsetX < 5 && obj.cellIndex!=0)
              return true;
       else
              return false;
}
function cell_right(obj){//¸¶¿ì½º°¡ ¼¿ÀÇ ¿À¸¥ÂÊÀÎÁö ÃøÁ¤
       if(event.offsetX > obj.width-4)
              return true;
       else
              return false;
}

//¸®»çÀÌÁî½ÃÀÛ
document.onmousedown = function(){
try{
       var now_mousedown = window.event.srcElement;
       if(now_mousedown.className.toUpperCase()=="COLRESIZE"){
              if( cell_left(now_mousedown) ){
                     now_mousedown = now_mousedown.parentNode.childNodes[now_mousedown.cellIndex-1];
              }else if( !cell_right(now_mousedown) ){
                     return true;//¿À¸¥Âʵµ ¿ÞÂʵµ ¾Æ´Ï¸é »çÀÌÁî Á¶Àý ¾ÈÇÔ
              }
              TCstartColResize(now_mousedown);
       }
}catch(e){ return true; }
}

//¸®»çÀÌÁî
document.onmousemove = function(){
try{
       var now_mousemove = window.event.srcElement;
       if(now_mousemove.className.toUpperCase()=="COLRESIZE" || td!=""){

              //¼¿ÀÇ °¡ÀåÀÚ¸®¸é ¸¶¿ì½º Ä¿¼­ º¯°æ
              if( cell_left(now_mousemove) || cell_right(now_mousemove) ){
                     now_mousemove.style.cursor = "col-resize";
              }else{
                     now_mousemove.style.cursor = "";
              }

              TCColResize(now_mousemove);
       }else{
              now_mousemove.style.cursor = "";
    }
}catch(e){ return true; }
}

//¸®»çÀÌÁîÁ¾·á
document.onmouseup = function(){
try{
       var now_mouseup = window.event.srcElement;
       //if(now_mouseup.className=="colResize"){
              TCstopColResize(now_mouseup);
       //}
}catch(e){ return true; }
}

//¸®»çÀÌÁî µµÁß ÅØ½ºÆ® ¼±Åà ±ÝÁö
document.onselectstart = function(){
try{
    if(td != ""){
        return false;
    }
}catch(e){ return true; }
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<div style="width:100%;height:100;overflow-x:auto;overflow-y:auto">
    <table width="430" border="0" cellpadding="3" cellspacing="1" bgcolor="#B8B8B8" nowrap style='table-layout:fixed'>
        <tr bgcolor="#A5D4D2" align="center" height="25">
            <td width="35"  class="colresize">¼±ÅÃ</td>
            <td width="35"  class="colresize">¼ø¹ø</td>
            <td width="70" class="colresize">ǰ¸ñ¸í</td>
            <td width="30"  class="colresize">¼ö·®</td>
            <td width="50"  class="colresize">´ÜÀ§</td>
            <td width="70"  class="colresize">³¯Â¥</td>
            <td width="70"  class="colresize">Àå¼Ò</td>
            <td width="70" class="colresize">ºñ°í</td>
        </tr>
        <tr bgcolor="#FFFFFF" height="27" align="center">
            <td><Input type="radio" name="radio"></td>
            <td>1</td>
            <td><input type='text' class="input_box"></td>
            <td><input type='text' class="input_box"></td>
            <td><select class="input_box"><option>EA</option></select></td>
            <td><input type='text' class="input_box"></td>
            <td><input type='text' class="input_box"></td>
            <td nowrap class="ellipsis">ºñ°í ºñ°í ºñ°í ºñ°í ºñ°í ºñ°í ºñ°í ºñ°í ºñ°í</td>
        </tr>
    </table>
</div>
</BODY>
</HTML>

2008-08-20 14:18:36
218.48.40.***

 

ÁÁÀº»ý°¢ ^^

÷ºÎÆÄÀÏ (ÃÑ 1°³)
  1. active_td.html 4.16 KB (64 ´Ù¿î·Îµå)
0Á¡ (0¸í)
µ¡±Û 2°³ | ÅÂ±× 0°³ | °ü·Ã±Ûº¸±â
ű×ÀÔ·Â
½±Ç¥(,)±¸ºÐÀ¸·Î Çѹø¿¡ ¿©·¯ ű׸¦ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù
idhacker
(0) (0)
¿ÀȪ...½Å±âÇϳ×...
211.194.140.*** 2005-03-15 12:24:51
ÇູÇѱ¤´ë
(0) (0)

¿À¿À~Á¤¸» ¸ÚÁøµ¥¿ä.

ÀÚ¹Ù½ºÅ©¸³Æ® °í¼öºÐµé¿¡ ¿ª·®ÀÌ ´À²¸Áö´Â ¸ÚÁø ÆÁÀÔ´Ï´Ù.

222.118.140.*** 2008-08-20 14:18:36
À̸§ ºñ¹Ð¹øÈ£
ÀÚ¹Ù½ºÅ©¸³Æ® ÆÁ
ÀÚ¹Ù½ºÅ©¸³Æ® ¹× CSS ÆÁ °Ô½ÃÆÇÀÔ´Ï´Ù
! ¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ÀÏÀÚ Á¶È¸
220 img À̹ÌÁö ºÎµå·´°Ô ÁÙÀ̱â 1 GoodBug 2009-12-18 1,036
219 rss xml ÆÄ½ÌÇÏ´Â ¸ðµâ ÀÔ´Ï´Ù. 1 °í°í½Ì 2009-11-27 1,106
218 Æ®¸® ÀÔ´Ï´Ù . 1 °í°í½Ì 2009-11-27 785
217 ¿¡·¯Ã³¸® 1 kaiser 2009-05-11 1,216
216 À¥ÆäÀÌÁö º¹»ç ¹æÁö ÇØÁö ÇÏ´Â ¹ý kaiser 2009-05-03 2,102
215 javascript ÇÑ±Û Â¥¸£±â 1 1 kaiser 2008-08-14 2,745
214 rolling ·Ñ¸µ ½ºÅ©¸³Æ® 1 2 GoodBug 2008-07-11 3,055
213 alert ¸Þ½ÃÁö¸¦ print ó·³ »ç¿ëÇϱâ 2 °í°í½Ì 2008-06-10 2,668
212 onload onload Æã¼ÇÀÌ Á¤ÀǵǾî ÀÖ´Â »óȲ¿¡¼­ onload¿¡ Ãß°¡Çϱâ 1 GoodBug 2008-04-11 2,954
211 javascript ÀÚ¹Ù½ºÅ©¸³Æ® °³¹ß°¡À̵å 4 1 kaiser 2008-04-09 3,446
210 escape HTML escpae code 1 GoodBug 2008-04-02 2,262
209 optgroup SELECT ¸ñ·Ï ±×·ìº°·Î ¹­±â 1 1 GoodBug 2008-03-06 2,728
208 µ¿Àû Å×À̺í Å×ÀÌºí¿¡ µ¿Àû TR »ðÀÔ ¹× »èÁ¦ IE, FF °ø¿ë 1 GoodBug 2008-01-18 3,328
207 drag Javascript drag and drop 1 1 GoodBug 2008-01-16 3,131
206 sort Sortable HTML table 2 GoodBug 2008-01-16 2,700
205 scrollable table Scrollable HTML table 1 GoodBug 2008-01-16 2,625
204 CSS CSS centered layout 1 1 GoodBug 2008-01-16 2,350
203 utf8 Javascript UTF-8 1 GoodBug 2008-01-16 2,833
202 encode Javascript url decode, encode 2 GoodBug 2008-01-16 2,853
201 ¾Ïȣȭ Javascript MD5 2 GoodBug 2008-01-15 2,298
copyright 2005-2010 by Unicorn